diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-28 22:32:20 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-29 08:42:06 -0600 |
commit | 14cb6803e0a0742613cd4e476c5db0e5a1b134e7 (patch) | |
tree | f1e6b831c0ac80239b9876083dafed6148f56ab9 /src/rebar3.erl | |
parent | 8d655d3c502295394ab30d9fc3fd11679629885d (diff) |
wip: profiles
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r-- | src/rebar3.erl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index 40f80d3..5ea62e6 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -107,12 +107,9 @@ run_aux(State, RawArgs) -> inets:start(), %% Process each command, resetting any state between each one - State2 = case rebar_state:get(State, base_dir, undefined) of - undefined -> - rebar_state:set(State, base_dir, filename:absname(rebar_state:dir(State))); - Dir -> - rebar_state:set(State, base_dir, filename:absname(Dir)) - end, + BaseDir = rebar_utils:base_dir(State), + State2 = rebar_state:set(State, base_dir, + filename:join(filename:absname(rebar_state:dir(State)), BaseDir)), {ok, Providers} = application:get_env(rebar, providers), |