1
0
Fork 0

fix: cleanup tar.gz after unpack

master
dump_stack() 2023-05-16 08:17:15 +00:00
parent a7e5827ff9
commit 046c553ed5
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 5 additions and 1 deletions

6
cache/cache.go vendored
View File

@ -64,7 +64,11 @@ func DownloadQemuImage(path, file string) (err error) {
}
err = unpackTar(resp.Filename, path)
return
if err != nil {
return
}
return os.Remove(resp.Filename)
}
func DownloadDebianCache(cachePath string) (err error) {