diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-02-25 23:03:41 -0800 |
---|---|---|
committer | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-02-25 23:03:41 -0800 |
commit | 05c9bf6bbb88243862d56a85d0014cb4085afef2 (patch) | |
tree | 8a19e756cf054d58c8ef6322f09df4ea904a60f4 /src | |
parent | 5396c5b7fec5655d4b07cfa877318be70a4c61c8 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_do.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_do.erl b/src/rebar_prv_do.erl index 83e57a1..8e6ee3a 100644 --- a/src/rebar_prv_do.erl +++ b/src/rebar_prv_do.erl @@ -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. |