Fix incorrect path
This commit is contained in:
parent
faecb6cd53
commit
48f0097c45
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue