summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_reltool.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl
index ee2b1ce..1e5774a 100644
--- a/src/rebar_reltool.erl
+++ b/src/rebar_reltool.erl
@@ -203,7 +203,7 @@ process_rebar_specs([{overlay, Source} | Rest], Spec) ->
case file:list_dir(Source) of
{ok, Files} ->
OverlaySpec = spec_copy_overlay(Files, Source, []),
- process_rebar_specs(Rest, [OverlaySpec | Spec]);
+ process_rebar_specs(Rest, Spec ++ OverlaySpec);
{error, Reason} ->
?ERROR("Failed to list overlay directory ~p: ~p\n", [Source, Reason]),
?FAIL