feat(path): Isolate Scoop apps' PATH (#5840)

This commit is contained in:
Hsiao-nan Cheung
2024-04-18 19:14:53 +08:00
committed by GitHub
parent fa06e921c2
commit 5819b5a1ef
8 changed files with 150 additions and 56 deletions

View File

@@ -100,5 +100,8 @@ if ($purge) {
}
Remove-Path -Path (shimdir $global) -Global:$global
if (get_config USE_ISOLATED_PATH) {
Remove-Path -Path ('%' + $scoopPathEnvVar + '%') -Global:$global
}
success 'Scoop has been uninstalled.'