瀏覽代碼

Make local commands remove libs before unpacking

pull/2309/head
Pablo Costas 4 年之前
父節點
當前提交
932bd6dd93
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/rebar_prv_local_install.erl

+ 3
- 0
src/rebar_prv_local_install.erl 查看文件

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

Loading…
取消
儲存