mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-12-06 23:48:55 +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"
|
local filename="$1"
|
||||||
|
|
||||||
if (( $# == 2 )); then
|
if (( $# == 2 )); then
|
||||||
printf '%s' "$2" | zsh -fn /dev/stdin
|
printf '%s' "$2" | command zsh -fn /dev/stdin
|
||||||
else
|
else
|
||||||
zsh -fn -- "$filename"
|
command zsh -fn -- "$filename"
|
||||||
fi || {
|
fi || {
|
||||||
echo "dotenv: error when sourcing '$filename' file" >&2
|
echo "dotenv: error when sourcing '$filename' file" >&2
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in new issue
Block a user