diff options
author | Tristan Sloughter <[email protected]> | 2015-12-04 16:12:30 -0600 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-12-04 16:14:01 -0600 |
commit | a64baad259d4ebc635723d3f92d0eb0560e22edb (patch) | |
tree | 056357199a8ae94e472c5956e14827fd74503e48 /src/rlx_config.erl | |
parent | 30b31d0742209769e6a05b310dd09b39d3ac0712 (diff) | |
download | relx-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.erl | 2 |
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" -> |