summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2019-05-27 22:20:56 -0400
committerGitHub <noreply@github.com>2019-05-27 22:20:56 -0400
commit311ba9e48da7c4ef8a681863ef737a597451b8a6 (patch)
treeb766c798682d781835f585fd2f1ccd6012759565 /src
parent6c677cddbf76eb7bea41405a19f9bcca50f34a57 (diff)
parent29f88cfcd34f1baf1475280e66c1ba7e21a9ade6 (diff)
Merge pull request #2093 from anderswei/master
bug when reread_config running on OTP 17
Diffstat (limited to 'src')
-rw-r--r--src/rebar_utils.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 6e5e934..066c673 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -460,7 +460,7 @@ reread_config(ConfigList, Opts) ->
%% NB: we attempt to mimic -config here, which survives app reload,
%% hence {persistent, true}.
SetEnv = case version_tuple(?MODULE:otp_release()) of
- {X, _, _} when X =< 17 ->
+ {X, _, _} when X < 17 ->
fun application:set_env/3;
_ ->
fun (App, Key, Val) -> application:set_env(App, Key, Val, [{persistent, true}]) end