remove zip file after extraction

This commit is contained in:
Shawn Smith
2021-11-13 23:46:58 +09:00
parent f57b3ce6d0
commit dd5ab00b38

View File

@@ -71,5 +71,10 @@ func ProxyDownload(path string) error {
return err
}
err = os.RemoveAll(filepath.Join(reposDir, zipPath))
if err != nil {
return err
}
return os.Rename(filepath.Join(reposDir, path+"@"+mv.Version), filepath.Join(reposDir, path))
}