mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-08-26 08:06:36 +00:00
Checked if uninstaller removed its directory. (#2078)
This commit is contained in:
committed by
Richard Kuhnt
parent
31075f6200
commit
4d956c2e30
@@ -73,8 +73,10 @@ $apps | ForEach-Object {
|
||||
try {
|
||||
Remove-Item -r $dir -ea stop -force
|
||||
} catch {
|
||||
error "Couldn't remove '$(friendly_path $dir)'; it may be in use."
|
||||
continue
|
||||
if(test-path $dir) {
|
||||
error "Couldn't remove '$(friendly_path $dir)'; it may be in use."
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
# remove older versions
|
||||
|
||||
Reference in New Issue
Block a user