summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rebar_templater.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index 4e2e678..8e07694 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -127,8 +127,9 @@ find_escript_templates() ->
re:run(Name, ?TEMPLATE_RE, [{capture, none}]) == match].
find_disk_templates() ->
- Files = rebar_utils:find_files(filename:join(os:getenv("HOME"), ".rebar/templates"), ?TEMPLATE_RE),
- [{file, F} || F <- Files].
+ HomeFiles = rebar_utils:find_files(filename:join(os:getenv("HOME"), ".rebar/templates"), ?TEMPLATE_RE),
+ LocalFiles = rebar_utils:find_files(".", ?TEMPLATE_RE),
+ [{file, F} || F <- HomeFiles++LocalFiles].
select_template([], Template) ->
?ABORT("Template ~s not found.\n", [Template]);