Skip to content

Commit dce8265

Browse files
committed
fixes
Signed-off-by: fahed dorgaa <[email protected]>
1 parent f4fa942 commit dce8265

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/options.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ func WithDotEnv(o *ProjectOptions) error {
198198
}
199199

200200
if s.IsDir() {
201-
return errors.Errorf("%s is a directory", dotEnvFile)
201+
if o.EnvFile != "" {
202+
return errors.Errorf("%s is a directory", dotEnvFile)
203+
}
202204
}
203205

204206
file, err := os.Open(dotEnvFile)

0 commit comments

Comments
 (0)