summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralisdair sullivan <alisdairsullivan@yahoo.ca>2015-02-25 23:03:41 -0800
committeralisdair sullivan <alisdairsullivan@yahoo.ca>2015-02-25 23:03:41 -0800
commit05c9bf6bbb88243862d56a85d0014cb4085afef2 (patch)
tree8a19e756cf054d58c8ef6322f09df4ea904a60f4
parent5396c5b7fec5655d4b07cfa877318be70a4c61c8 (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
-rw-r--r--src/rebar_prv_do.erl4
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.