summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_subdirs.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_subdirs.erl b/src/rebar_subdirs.erl
index fb23636..6c33441 100644
--- a/src/rebar_subdirs.erl
+++ b/src/rebar_subdirs.erl
@@ -38,7 +38,8 @@
preprocess(Config, _) ->
%% Get the list of subdirs specified in the config (if any).
Cwd = rebar_utils:get_cwd(),
- Subdirs0 = rebar_config:get_local(Config, sub_dirs, []),
+ ListSubdirs = rebar_config:get_local(Config, sub_dirs, []),
+ Subdirs0 = lists:flatmap(fun filelib:wildcard/1, ListSubdirs),
case {rebar_core:is_skip_dir(Cwd), Subdirs0} of
{true, []} ->
{ok, []};