fix: Erlang PATH uninstall regex broken

This commit is contained in:
Iristyle
2013-07-17 11:54:28 -04:00
parent 5f5389a873
commit e0bae6ea6d

View File

@@ -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