fix: Erlang PATH uninstall regex broken
This commit is contained in:
1 parent
5f5389a873
commit
e0bae6ea6d
1 file changed
+2
-1
@@ -20,7 +20,8 @@ try
|
||||
|
||||
Uninstall-ChocolateyPackage @uninstallParams
|
||||
|
||||
$binLocation = Join-Path $installPath 'bin'
|
||||
$binLocation = (Join-Path $installPath 'bin') -replace '\\', '\\'
|
||||
|
||||
$userPaths = [Environment]::GetEnvironmentVariable('Path', 'User') -split ';' |
|
||||
? { ($_ -notmatch $binLocation) -and (![String]::IsNullOrEmpty($_)) } |
|
||||
Select-Object -Unique
|
||||
|
||||
Reference in new issue
Block a user