From e0bae6ea6d5f6ce95c53afb9c7d27c2ce60a4ffc Mon Sep 17 00:00:00 2001 From: Iristyle Date: Wed, 17 Jul 2013 11:54:28 -0400 Subject: [PATCH] fix: Erlang PATH uninstall regex broken --- Erlang16/tools/chocolateyUninstall.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Erlang16/tools/chocolateyUninstall.ps1 b/Erlang16/tools/chocolateyUninstall.ps1 index b426df3..fea8e5f 100644 --- a/Erlang16/tools/chocolateyUninstall.ps1 +++ b/Erlang16/tools/chocolateyUninstall.ps1 @@ -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