From 48f0097c45ace43e4d53f7f8d50cb517f44d6935 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 6 Aug 2024 12:21:00 +0200 Subject: [PATCH] Fix incorrect path --- scripts/Windows/Scripts/System.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {