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" } }