浏览代码

Fix bug 805

Use rebar_utils:find_executable/1 that wraps the
path in quotes to make it work even if it contains
whitespace.
pull/3/head
Juhani Rankimies 14 年前
提交者 Tuncer Ayaz
父节点
当前提交
fe664e8c50
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
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_ $?\" "

正在加载...
取消
保存