Fix Some Package Folders Not Getting Removed

This commit is contained in:
zoicware
2024-11-17 22:44:46 -05:00
committed by GitHub
parent 8c970d9160
commit dacb081f0f

View File

@@ -122,10 +122,12 @@ foreach ($Path in $packagesPath) {
if ($path -like '*Photon*') { if ($path -like '*Photon*') {
$command = "`$dlls = (Get-ChildItem -Path $Path -Filter *.dll).FullName; foreach(`$dll in `$dlls){Remove-item ""`$dll"" -force}" $command = "`$dlls = (Get-ChildItem -Path $Path -Filter *.dll).FullName; foreach(`$dll in `$dlls){Remove-item ""`$dll"" -force}"
Run-Trusted -command $command Run-Trusted -command $command
Start-Sleep 1
} }
else { else {
$command = "Remove-item ""$Path"" -force -recurse" $command = "Remove-item ""$Path"" -force -recurse"
Run-Trusted -command $command Run-Trusted -command $command
Start-Sleep 1
} }
} }