(fix) non-existent custom temp dir
Signed-off-by: Quan TRAN <account@itscaro.me>
This commit is contained in:
parent
c7b23a67cb
commit
12e103d510
|
|
@ -34,9 +34,11 @@ func tempValuesFilePath(release *ReleaseSpec, data interface{}) (*string, error)
|
|||
workDir := os.Getenv("HELMFILE_TEMPDIR")
|
||||
if workDir == "" {
|
||||
workDir, err = os.MkdirTemp(os.TempDir(), "helmfile")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
} else {
|
||||
err = os.MkdirAll(workDir, os.FileMode(0700))
|
||||
}
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
d := filepath.Join(workDir, id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue