mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-30 16:00:23 +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
|
||||
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 {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user