diff --git a/lib/core.ps1 b/lib/core.ps1 index 77fa28e43..a88a7d4d1 100644 --- a/lib/core.ps1 +++ b/lib/core.ps1 @@ -98,7 +98,7 @@ function shim($path, $global) { $shim_cmd = "$(strip_ext($shim)).cmd" ':: ensure $HOME is set for MSYS programs' | out-file $shim_cmd -encoding oem '@if "%home%"=="" set home=%homedrive%%homepath%\' | out-file $shim_cmd -encoding oem -append - '@if "%home%"=="\ set home=%allusersprofile%\' | out-file $shim_cmd -encoding oem -append + '@if "%home%"=="\" set home=%allusersprofile%\' | out-file $shim_cmd -encoding oem -append "@`"$path`" %*" | out-file $shim_cmd -encoding oem -append } }