From 2bb3007006b557d750b473ec29f1ef086aca2a08 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 10982563..9a4f9e95 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;