fix: cleanup tar.gz after unpack
This commit is contained in:
parent
a7e5827ff9
commit
046c553ed5
4
cache/cache.go
vendored
4
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)
|
||||||
|
if err != nil {
|
||||||
return
|
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