Skip to content

Commit e7c94d7

Browse files
committed
fix: inverted condition
1 parent 98605b6 commit e7c94d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/utils/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func GenerateEnvFile(customEnvFile string) error {
205205

206206
// Handle custom env file if provided
207207
if customEnvFile != "" {
208-
if customEnvContent, err := os.ReadFile(customEnvFile); err != nil {
208+
if customEnvContent, err := os.ReadFile(customEnvFile); err == nil {
209209
customEnvMap := EnvStringToMap(string(customEnvContent))
210210
maps.Copy(newEnv, customEnvMap)
211211
} else {

0 commit comments

Comments
 (0)