diff --git a/scripts/Windows/Scripts/System.ps1 b/scripts/Windows/Scripts/System.ps1 index 952b96c1..fb530358 100644 --- a/scripts/Windows/Scripts/System.ps1 +++ b/scripts/Windows/Scripts/System.ps1 @@ -21,7 +21,7 @@ function Remove-DesktopIcon { $path = "Desktop/$Pattern"; - foreach ($userDir in @($(~), $env:PUBLIC, "$env:SystemDrive/Users/Default")) { + foreach ($userDir in @("~", $env:PUBLIC, "$env:SystemDrive/Users/Default")) { $fullName = "$userDir/$path"; if (Test-Path -PathType Leaf $fullName) {