mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 15:58:08 +02:00
Merge pull request #37 from itscaro/qtran/fix-temp-dir
Fix non-existent custom temp dir
This commit is contained in:
+5
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user