From 92dee406ff8e7ca5595661cfe92dfaf0bb1b9412 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 5 Aug 2024 23:08:36 +0200 Subject: [PATCH] Fix incorrect argument initialization --- scripts/Windows/Scripts/Software.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Scripts/Software.ps1 b/scripts/Windows/Scripts/Software.ps1 index 6d8a73ea..4f89e283 100644 --- a/scripts/Windows/Scripts/Software.ps1 +++ b/scripts/Windows/Scripts/Software.ps1 @@ -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;