aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_config.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-12-04 16:12:30 -0600
committerTristan Sloughter <[email protected]>2015-12-04 16:14:01 -0600
commita64baad259d4ebc635723d3f92d0eb0560e22edb (patch)
tree056357199a8ae94e472c5956e14827fd74503e48 /src/rlx_config.erl
parent30b31d0742209769e6a05b310dd09b39d3ac0712 (diff)
downloadrelx-a64baad259d4ebc635723d3f92d0eb0560e22edb.tar.gz
relx-a64baad259d4ebc635723d3f92d0eb0560e22edb.tar.bz2
relx-a64baad259d4ebc635723d3f92d0eb0560e22edb.zip
replace last, not first when merging cli and config terms
Diffstat (limited to 'src/rlx_config.erl')
-rw-r--r--src/rlx_config.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlx_config.erl b/src/rlx_config.erl
index 2e16ab3..d82757b 100644
--- a/src/rlx_config.erl
+++ b/src/rlx_config.erl
@@ -316,7 +316,7 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) ->
merge_configs(CliTerms, ConfigTerms++[{Key, Value}])
end;
_ ->
- merge_configs(CliTerms, lists:keystore(Key, 1, ConfigTerms, {Key, Value}))
+ merge_configs(CliTerms, lists:reverse(lists:keystore(Key, 1, lists:reverse(ConfigTerms), {Key, Value})))
end.
parse_vsn(Vsn) when Vsn =:= semver ; Vsn =:= "semver" ->