From 05c9bf6bbb88243862d56a85d0014cb4085afef2 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Wed, 25 Feb 2015 23:03:41 -0800 Subject: 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 --- src/rebar_prv_do.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rebar_prv_do.erl') 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. -- cgit v1.1