fix: cleanup tar.gz after unpack
This commit is contained in:
parent
a7e5827ff9
commit
046c553ed5
6
cache/cache.go
vendored
6
cache/cache.go
vendored
@ -64,7 +64,11 @@ func DownloadQemuImage(path, file string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = unpackTar(resp.Filename, path)
|
err = unpackTar(resp.Filename, path)
|
||||||
return
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
return os.Remove(resp.Filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
func DownloadDebianCache(cachePath string) (err error) {
|
func DownloadDebianCache(cachePath string) (err error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user