Skip to content

Commit 311ba9e

Browse files
authored
Merge pull request #2093 from anderswei/master
bug when reread_config running on OTP 17
2 parents 6c677cd + 29f88cf commit 311ba9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rebar_utils.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ reread_config(ConfigList, Opts) ->
460460
%% NB: we attempt to mimic -config here, which survives app reload,
461461
%% hence {persistent, true}.
462462
SetEnv = case version_tuple(?MODULE:otp_release()) of
463-
{X, _, _} when X =< 17 ->
463+
{X, _, _} when X < 17 ->
464464
fun application:set_env/3;
465465
_ ->
466466
fun (App, Key, Val) -> application:set_env(App, Key, Val, [{persistent, true}]) end

0 commit comments

Comments
 (0)