Skip to content

Commit 932bd6d

Browse files
committed
Make local commands remove libs before unpacking
1 parent aa546d2 commit 932bd6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rebar_prv_local_install.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ extract_escript(State, ScriptPath) ->
8383
throw(?PRV_ERROR({non_writeable, OutputDir}))
8484
end,
8585

86+
?INFO("Removing existing rebar3 libs from ~ts...", [OutputDir]),
87+
rebar_file_utils:rm_rf(filename:join(OutputDir, "*")),
88+
8689
?INFO("Extracting rebar3 libs to ~ts...", [OutputDir]),
8790
zip:extract(Archive, [{cwd, OutputDir}]),
8891

0 commit comments

Comments
 (0)