소스 검색

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 년 전
committed by 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 %% 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_ $?\" "

불러오는 중...
취소
저장