summaryrefslogtreecommitdiff
path: root/src/rebar_prv_do.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-05-30 10:37:18 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-05-30 10:37:18 -0500
commitb51a0e314b2fb5a26c99625d025d70bf5c571b23 (patch)
tree4169aafe29ed425f9e1ec7c7d90a927b55da211c /src/rebar_prv_do.erl
parenta11c009fcfe02fb7741bb7ce0c8ebaf2141ffd8d (diff)
parentc87f2a2c73ccdff29c0b320070c5599716b47fca (diff)
Merge pull request #473 from ferd/improve-shell
improve the rebar3 shell
Diffstat (limited to 'src/rebar_prv_do.erl')
-rw-r--r--src/rebar_prv_do.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_prv_do.erl b/src/rebar_prv_do.erl
index aee3a27..29ef054 100644
--- a/src/rebar_prv_do.erl
+++ b/src/rebar_prv_do.erl
@@ -47,6 +47,8 @@ do_tasks([{TaskStr, Args}|Tail], State) ->
default ->
%% The first task we hit might be a namespace!
case maybe_namespace(State2, Task, Args) of
+ {ok, FinalState} when Tail =:= [] ->
+ {ok, FinalState};
{ok, _} ->
do_tasks(Tail, State);
{error, Reason} ->
@@ -56,6 +58,8 @@ do_tasks([{TaskStr, Args}|Tail], State) ->
%% We're already in a non-default namespace, check the
%% task directly.
case rebar_core:process_command(State2, Task) of
+ {ok, FinalState} when Tail =:= [] ->
+ {ok, FinalState};
{ok, _} ->
do_tasks(Tail, State);
{error, Reason} ->