From 94b7258e2bf7a94d86df7bfbf55c56481bd24fc0 Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Sat, 9 Apr 2016 16:49:47 +1000 Subject: [PATCH] carry on if there is a problem deleting extracted files (fixes #773) --- lib/install.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/install.ps1 b/lib/install.ps1 index 66af450da..380c81ff9 100644 --- a/lib/install.ps1 +++ b/lib/install.ps1 @@ -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" } }