Fix incorrect argument initialization
This commit is contained in:
parent
3708aa8e2b
commit
2bb3007006
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue