Fix incorrect argument initialization

This commit is contained in:
Manuel Thalmann 2024-08-05 23:08:36 +02:00
parent 3708aa8e2b
commit 2bb3007006

View file

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