summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuhani Rankimies <juhani@juranki.com>2010-11-22 23:08:34 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-11-22 23:48:28 +0100
commitfe664e8c50635eb937474608b32cd4ffdaf9a8aa (patch)
tree82576e3387eabaa86e5ef97629f872c48e423fbf
parent57eca0272e16592bdbe59e3164df5ac758d6cafa (diff)
Fix bug 805
Use rebar_utils:find_executable/1 that wraps the path in quotes to make it work even if it contains whitespace.
-rw-r--r--src/rebar_utils.erl2
1 files changed, 1 insertions, 1 deletions
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_ $?\" "