Commit c781d708 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

dotenv: test and warn of incorrect.env syntax

Fixes #6337
parent 9ecde7f7
source_env() { source_env() {
if [[ -f .env ]]; then if [[ -f .env ]]; then
# test .env syntax
zsh -fn .env || echo 'dotenv: error when sourcing `.env` file' >&2
if [[ -o a ]]; then if [[ -o a ]]; then
source .env source .env
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment