Quellcode durchsuchen

Make local commands remove libs before unpacking

pull/2309/head
Pablo Costas vor 4 Jahren
Ursprung
Commit
932bd6dd93
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      src/rebar_prv_local_install.erl

+ 3
- 0
src/rebar_prv_local_install.erl Datei anzeigen

@ -83,6 +83,9 @@ extract_escript(State, ScriptPath) ->
throw(?PRV_ERROR({non_writeable, OutputDir}))
end,
?INFO("Removing existing rebar3 libs from ~ts...", [OutputDir]),
rebar_file_utils:rm_rf(filename:join(OutputDir, "*")),
?INFO("Extracting rebar3 libs to ~ts...", [OutputDir]),
zip:extract(Archive, [{cwd, OutputDir}]),

Laden…
Abbrechen
Speichern