mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix bug 805
Use rebar_utils:find_executable/1 that wraps the path in quotes to make it work even if it contains whitespace.
This commit is contained in:
parent
57eca0272e
commit
fe664e8c50
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ sh(Command0, Env, Dir) ->
|
||||||
%% We need a bash shell to execute on windows
|
%% We need a bash shell to execute on windows
|
||||||
%% also the port doesn't seem to close from time to time (mingw)
|
%% also the port doesn't seem to close from time to time (mingw)
|
||||||
patch_on_windows(Cmd, {win32,nt}) ->
|
patch_on_windows(Cmd, {win32,nt}) ->
|
||||||
case os:find_executable("bash") of
|
case find_executable("bash") of
|
||||||
false -> Cmd;
|
false -> Cmd;
|
||||||
Bash ->
|
Bash ->
|
||||||
Bash ++ " -c \"" ++ Cmd ++ "; echo _port_cmd_status_ $?\" "
|
Bash ++ " -c \"" ++ Cmd ++ "; echo _port_cmd_status_ $?\" "
|
||||||
|
|
Loading…
Reference in a new issue