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