aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-05-24 23:49:00 +0200
committerJordan Wilberding <[email protected]>2014-05-24 23:49:00 +0200
commit916e29bc7d4cb0df5215334968bb3d42c04f9bee (patch)
treeef7a2373ddf10993ecae85e53da71561df5c1e51
parent23d3d777a4fe67b661a7be0fa5a8ef3e30a48ef1 (diff)
parent3686e4b36f8d7d1df98c94633bd6cbf6135ccdd5 (diff)
downloadrelx-916e29bc7d4cb0df5215334968bb3d42c04f9bee.tar.gz
relx-916e29bc7d4cb0df5215334968bb3d42c04f9bee.tar.bz2
relx-916e29bc7d4cb0df5215334968bb3d42c04f9bee.zip
Merge pull request #191 from tsloughter/masterv1.0.2
fix cli/config file merging
-rw-r--r--src/rlx_prv_config.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlx_prv_config.erl b/src/rlx_prv_config.erl
index c795334..ebfe0dd 100644
--- a/src/rlx_prv_config.erl
+++ b/src/rlx_prv_config.erl
@@ -265,5 +265,5 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) ->
merge_configs(CliTerms, [{Key, Value} | ConfigTerms])
end;
_ ->
- merge_configs(CliTerms, [{Key, Value} | ConfigTerms])
+ merge_configs(CliTerms, lists:keystore(Key, 1, ConfigTerms, {Key, Value}))
end.