(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") | 	workDir := os.Getenv("HELMFILE_TEMPDIR") | ||||||
| 	if workDir == "" { | 	if workDir == "" { | ||||||
| 		workDir, err = os.MkdirTemp(os.TempDir(), "helmfile") | 		workDir, err = os.MkdirTemp(os.TempDir(), "helmfile") | ||||||
|  | 	} else { | ||||||
|  | 		err = os.MkdirAll(workDir, os.FileMode(0700)) | ||||||
|  | 	} | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		panic(err) | 		panic(err) | ||||||
| 	} | 	} | ||||||
| 	} |  | ||||||
| 
 | 
 | ||||||
| 	d := filepath.Join(workDir, id) | 	d := filepath.Join(workDir, id) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue