bkeepers / dotenv

A Ruby gem to load environment variables from `.env`.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse envfile with script proceeds even if the script fails

kigsmtua opened this issue · comments

Steps to reproduce

I am writing a simple script that utilizes dotenv to parse an envfile. some of the variables invoke a script example

var_name=$(./script "skskkkksk")

Is there a way for parse to exit if the script returns a non-success code? instead of proceeding to the next variable?

Expected behavior

Tell us what should happen

I expect that should the script return a non 0 exit code, the call to parse should not proceed,

Actual behavior

Tell us what happens instead
The script proceeds regardless of the non-zero exit code

System configuration

dotenv version:
latest
Rails version:

Ruby version:
2.6.5

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.