carry on if there is a problem deleting extracted files (fixes #773)

This commit is contained in:
Luke Sampson
2016-04-09 16:49:47 +10:00
parent 7070604f5c
commit 94b7258e2b
+2
View File
@@ -190,6 +190,8 @@ function dl_urls($app, $version, $manifest, $architecture, $dir, $use_cache = $t
rm -r -force "$dir\_scoop_extract" -ea stop
} catch [system.io.pathtoolongexception] {
cmd /c "rmdir /s /q $dir\_scoop_extract"
} catch [system.unauthorizedaccessexception] {
warn "couldn't remove $dir\_scoop_extract: unauthorized access"
}
}