mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Use override syntax that rebar3 accepts
This commit is contained in:
parent
d3aab2ea18
commit
99f8e58eaf
2 changed files with 4 additions and 4 deletions
|
@ -2,11 +2,11 @@
|
|||
-export([preprocess/2]).
|
||||
|
||||
override_opts(override, Config, Opts) ->
|
||||
lists:foldl(fun({Opt, Value}, Conf) ->
|
||||
lists:foldl(fun({Opt, [Value]}, Conf) ->
|
||||
rebar_config:set(Conf, Opt, Value)
|
||||
end, Config, Opts);
|
||||
override_opts(add, Config, Opts) ->
|
||||
lists:foldl(fun({Opt, Value}, Conf) ->
|
||||
lists:foldl(fun({Opt, [Value]}, Conf) ->
|
||||
V = rebar_config:get_local(Conf, Opt, []),
|
||||
rebar_config:set(Conf, Opt, [Value | V])
|
||||
end, Config, Opts).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue