From 571e92d568ce623701e5d53243c28572388fc538 Mon Sep 17 00:00:00 2001 From: Hans Bulfone Date: Wed, 28 Feb 2018 23:02:31 +0100 Subject: .app.src.script files may return app specification directly (i.e. not wrapped inside a list - rebar3 allows this as well) --- core/deps.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/deps.mk b/core/deps.mk index 1ffae2a..0b17ea9 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -480,7 +480,10 @@ define dep_autopatch_appsrc_script.erl Bindings0 = erl_eval:new_bindings(), Bindings1 = erl_eval:add_binding('CONFIG', Conf0, Bindings0), Bindings = erl_eval:add_binding('SCRIPT', AppSrcScript, Bindings1), - {ok, [Conf]} = file:script(AppSrcScript, Bindings), + Conf = case file:script(AppSrcScript, Bindings) of + {ok, [C]} -> C; + {ok, C} -> C + end, ok = file:write_file(AppSrc, io_lib:format("~p.~n", [Conf])), halt() endef -- cgit v1.2.3