Ver código fonte

Fix dialyzer warning: os:find_executable(string())

Tuncer Ayaz 14 anos atrás
pai
commit
b8b112524b
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_utils.erl Ver arquivo

@ -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 os:find_executable("n>bash") of
false -> Cmd; false -> Cmd;
Bash -> Bash ->
Bash ++ " -c \"" ++ Cmd ++ "; echo _port_cmd_status_ $?\" " Bash ++ " -c \"" ++ Cmd ++ "; echo _port_cmd_status_ $?\" "

Carregando…
Cancelar
Salvar