Skip to content

Display a warning if the .env file exists but is not readable #4

@blancks

Description

@blancks

Current Behavior:
Inside the parseEnvFile() function, if the .env file does not exist or the script does not have permission to read it, the function exits silently without doing anything.

Expected Behavior:
It would be more intuitive for users to be informed when a .env file exists but cannot be accessed due to incorrect permissions. The function should output a warning message to stderr in such cases.

Additional Context:
This will help users quickly identify permission issues that prevent their environment from loading correctly when running the script without sourcing the .env to the environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions