mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
fix(dotenv): actually exit when .env syntax is broken
This commit is contained in:
@@ -52,7 +52,10 @@ source_env() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# test .env syntax
|
# test .env syntax
|
||||||
zsh -fn $ZSH_DOTENV_FILE || echo "dotenv: error when sourcing '$ZSH_DOTENV_FILE' file" >&2
|
zsh -fn $ZSH_DOTENV_FILE || {
|
||||||
|
echo "dotenv: error when sourcing '$ZSH_DOTENV_FILE' file" >&2
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
setopt localoptions allexport
|
setopt localoptions allexport
|
||||||
source $ZSH_DOTENV_FILE
|
source $ZSH_DOTENV_FILE
|
||||||
|
|||||||
Reference in New Issue
Block a user