Use full path while deleting

This commit is contained in:
VictoriousRaptor 2024-05-03 18:42:47 +08:00
parent 6c3bcdc0b3
commit c058c649c2

View file

@ -83,7 +83,7 @@ function Delete-Unused($path, $config)
foreach ($i in $deleteList)
{
write "Deleting duplicated $($i.Name) with version $($i.VersionInfo.FileVersion) at location $($i.Directory.FullName)"
Remove-Item $i
Remove-Item -Path $i.FullName
}
Remove-Item -Path $target -Include "*.xml" -Recurse
}