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