Skip to content

Commit

Permalink
Merge pull request #2093 from anderswei/master
Browse files Browse the repository at this point in the history
bug when reread_config running on OTP 17
  • Loading branch information
ferd committed May 28, 2019
2 parents 6c677cd + 29f88cf commit 311ba9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rebar_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 311ba9e

Please sign in to comment.