From fe664e8c50635eb937474608b32cd4ffdaf9a8aa Mon Sep 17 00:00:00 2001 From: Juhani Rankimies Date: Mon, 22 Nov 2010 23:08:34 +0200 Subject: Fix bug 805 Use rebar_utils:find_executable/1 that wraps the path in quotes to make it work even if it contains whitespace. --- src/rebar_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 32f08bd..98fdbd7 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -93,7 +93,7 @@ sh(Command0, Env, Dir) -> %% We need a bash shell to execute on windows %% also the port doesn't seem to close from time to time (mingw) patch_on_windows(Cmd, {win32,nt}) -> - case os:find_executable("bash") of + case find_executable("bash") of false -> Cmd; Bash -> Bash ++ " -c \"" ++ Cmd ++ "; echo _port_cmd_status_ $?\" " -- cgit v1.1