Skip to content

Commit

Permalink
Merge pull request #172 from tsloughter/default_release
Browse files Browse the repository at this point in the history
don't override release set in cmd args
  • Loading branch information
jwilberding committed May 4, 2014
2 parents 5a5ca5b + bb076f9 commit f4d2bed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rlx_prv_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ load_config(ConfigFile, State) ->
-spec load_terms(term(), {ok, rlx_state:t()} | relx:error()) ->
{ok, rlx_state:t()} | relx:error().
load_terms({default_release, RelName, RelVsn}, {ok, State}) ->
{ok, rlx_state:default_configured_release(State, RelName, RelVsn)};
case rlx_state:default_configured_release(State) of
{undefined, undefined} ->
{ok, rlx_state:default_configured_release(State, RelName, RelVsn)};
_ ->
{ok, State}
end;
load_terms({paths, Paths}, {ok, State}) ->
code:add_pathsa([filename:absname(Path) || Path <- Paths]),
{ok, State};
Expand Down

0 comments on commit f4d2bed

Please sign in to comment.