summaryrefslogtreecommitdiff
path: root/src/rebar_prv_clean.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-02-26 09:45:41 -0500
committerFred Hebert <mononcqc@ferd.ca>2017-02-26 09:45:41 -0500
commit66a24391963f106d9652194d72d751197693d556 (patch)
treefe8e528c7533b9c23d013df588dbb0317698e516 /src/rebar_prv_clean.erl
parentffeb6828865bfa935d30be29502bfcd290d702ff (diff)
Fix wildcard usage in rebar3 clean
The wildcard usage could fail on some OSes by being passed directly and just not finding libs and erroring out
Diffstat (limited to 'src/rebar_prv_clean.erl')
-rw-r--r--src/rebar_prv_clean.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_clean.erl b/src/rebar_prv_clean.erl
index 8f31fdd..d185f75 100644
--- a/src/rebar_prv_clean.erl
+++ b/src/rebar_prv_clean.erl
@@ -44,7 +44,8 @@ do(State) ->
case All of
true ->
DepsDir = rebar_dir:deps_dir(State1),
- AllApps = rebar_app_discover:find_apps([filename:join(DepsDir, "*")], all),
+ DepsDirs = filelib:wildcard(filename:join(DepsDir, "*")),
+ AllApps = rebar_app_discover:find_apps(DepsDirs, all),
clean_apps(State1, Providers, AllApps);
false ->
ProjectApps = rebar_state:project_apps(State1),