mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
remove zip file after extraction
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user