Fix potential errors

This commit is contained in:
Manuel Thalmann 2024-09-20 05:46:26 +02:00
parent 03b0c21514
commit 2429e6ad49

View file

@ -363,6 +363,7 @@ $null = New-Module {
}
default {
if ((-not $Arguments.ContainsKey($userArgument)) -or (-not $Arguments[$userArgument])) {
$Arguments.Remove($userArgument);
$Arguments.Add($userArgument, ($IsWindows ? $env:UserName : $env:USER));
}