summaryrefslogtreecommitdiff
path: root/src/rebar_config.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-07-26 18:29:50 -0500
committerTristan Sloughter <t@crashfast.com>2015-07-26 21:08:52 -0500
commit806f7f9219b43b20f4ed23761019282235b32681 (patch)
treecc9f055ad3021b4973b9af9bd396fcc87489f572 /src/rebar_config.erl
parenta415140415e4f48de85f754e10443745a72fad4f (diff)
include app.src.script in app discover and always use if available
Diffstat (limited to 'src/rebar_config.erl')
-rw-r--r--src/rebar_config.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl
index 3e06c38..d2b4a12 100644
--- a/src/rebar_config.erl
+++ b/src/rebar_config.erl
@@ -63,7 +63,8 @@ consult_file_(File) when is_binary(File) ->
consult_file_(File) ->
case filename:extension(File) of
".script" ->
- consult_and_eval(remove_script_ext(File), File);
+ {ok, Terms} = consult_and_eval(remove_script_ext(File), File),
+ [Terms];
_ ->
Script = File ++ ".script",
case filelib:is_regular(Script) of