mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-28 03:13:03 +01:00
fix(dotenv): bypass aliases when checking .env syntax (#14179)
This commit is contained in:
1 parent
da85047297
commit
22c883efa4
1 file changed
+2
-2
@@ -263,9 +263,9 @@ _dotenv_check_syntax() {
|
||||
local filename="$1"
|
||||
|
||||
if (( $# == 2 )); then
|
||||
printf '%s' "$2" | zsh -fn /dev/stdin
|
||||
printf '%s' "$2" | command zsh -fn /dev/stdin
|
||||
else
|
||||
zsh -fn -- "$filename"
|
||||
command zsh -fn -- "$filename"
|
||||
fi || {
|
||||
echo "dotenv: error when sourcing '$filename' file" >&2
|
||||
return 1
|
||||
|
||||
Reference in new issue
Block a user