Przeglądaj źródła

reset state between tasks run with `do` so `rebar do foo, bar, baz`

has the same outcome as `rebar3 foo && rebar3 bar && rebar3 baz`

fixes #191
pull/192/head
alisdair sullivan 10 lat temu
rodzic
commit
05c9bf6bbb
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      src/rebar_prv_do.erl

+ 2
- 2
src/rebar_prv_do.erl Wyświetl plik

@ -42,8 +42,8 @@ do_tasks([{TaskStr, Args}|Tail], State) ->
State1 = rebar_state:set(State, task, Task),
State2 = rebar_state:command_args(State1, Args),
case rebar_core:process_command(State2, Task) of
{ok, State3} ->
do_tasks(Tail, State3);
{ok, _} ->
do_tasks(Tail, State);
Error ->
Error
end.

Ładowanie…
Anuluj
Zapisz