fix: cleanup tar.gz after unpack
This commit is contained in:
		
							
								
								
									
										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) | ||||
| 	return | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return os.Remove(resp.Filename) | ||||
| } | ||||
|  | ||||
| func DownloadDebianCache(cachePath string) (err error) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user