1
0
Fork 0

Fix dotenv plugin accepted file format and clarify README (#6093)

* Fix dotenv plugin accepted file format

* clarify README and add disclaimer section
This commit is contained in:
Arthur 2018-07-11 03:31:47 +06:00 committed by Marc Cornellà
commit 7cb5fa8aea
2 changed files with 22 additions and 5 deletions

View file

@ -2,7 +2,13 @@
source_env() {
if [[ -f .env ]]; then
source .env
if [[ -o a ]]; then
source .env
else
set -a
source .env
set +a
fi
fi
}