Fix incorrect argument initialization

This commit is contained in:
Manuel Thalmann 2024-08-05 23:08:36 +02:00
parent d2599ee322
commit 9109639ac6

View file

@ -15,8 +15,6 @@ $null = New-Module {
[hashtable] $Arguments
)
$Arguments ??= @{ };
if (-not $Name) {
$Name = Split-Path -Leaf (Split-Path -Parent ((Get-PSCallStack)[1].ScriptName));
}
@ -33,6 +31,8 @@ $null = New-Module {
[hashtable] $Arguments
)
$Arguments ??= @{ };
$argumentList = @{
installer = $installHandler;
arguments = $Arguments;