mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-05 10:41:36 +00:00
⚡ Change the pattern of temporary file downloaded from S3
This commit is contained in:
parent
261e850a59
commit
3b758d15a0
@ -307,7 +307,7 @@ func downloadTarFromS3(s3Url string) (tarPath string, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file *os.File
|
var file *os.File
|
||||||
file, err = os.CreateTemp(os.TempDir(), filepath.Base(key))
|
file, err = os.CreateTemp(os.TempDir(), fmt.Sprintf("%s_*.%s", strings.TrimSuffix(filepath.Base(key), filepath.Ext(key)), filepath.Ext(key)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user