From 99f8e58eaf8f9b56d52f9501e553d7f5b8a9c2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 15 Jan 2018 11:56:13 +0100 Subject: Use override syntax that rebar3 accepts --- plugins/override_opts.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/override_opts.erl b/plugins/override_opts.erl index 1cdeca66..df875c55 100644 --- a/plugins/override_opts.erl +++ b/plugins/override_opts.erl @@ -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). -- cgit v1.2.3