From dd5ab00b3898d9cb72d86ec83430abb488172b8b Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Sat, 13 Nov 2021 23:46:58 +0900 Subject: [PATCH] remove zip file after extraction --- download/proxy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/download/proxy.go b/download/proxy.go index f64364d..30808d1 100644 --- a/download/proxy.go +++ b/download/proxy.go @@ -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)) }