Ensure Arguments
contains an object
This commit is contained in:
parent
b566d63ef2
commit
3708aa8e2b
1 changed files with 3 additions and 1 deletions
|
@ -12,9 +12,11 @@ $null = New-Module {
|
|||
[scriptblock] $Configurator = { },
|
||||
[scriptblock] $UserConfigurator = { },
|
||||
[InstallerAction] $Action = [InstallerAction]::Install,
|
||||
[hashtable] $Arguments = @{ }
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
$Arguments ??= @{ };
|
||||
|
||||
if (-not $Name) {
|
||||
$Name = Split-Path -Leaf (Split-Path -Parent ((Get-PSCallStack)[1].ScriptName));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue