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à
parent be342b1bc8
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
}