diff options
Diffstat (limited to 'core/deps.mk')
-rw-r--r-- | core/deps.mk | 5 |
1 files changed, 4 insertions, 1 deletions
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 |