This commit is contained in:
2025-05-24 21:53:00 -05:00
parent fdf3cccd7c
commit 9b2dbdcb5a

View File

@@ -47,8 +47,10 @@ func mainErr() error {
return errors.New("missing data argument")
}
if err := godotenv.Load(); err != nil {
return err
if _, err := os.Stat(".env"); err == nil {
if err := godotenv.Load(".env"); err != nil {
return err
}
}
execPath, _ := path.Split(os.Args[0])