mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-11-22 15:30:59 +02:00
Write _autoenv_check_authorized_env_file to stderr
stdout might be redirected, e.g. with "cd - >/dev/null", and this message should appear in stderr probably anyway. I've tried to add a test for this, by redirecting stdout in .zshenv, but cram does not handle this well (and appears to redirect stderr to stdout anyway).
This commit is contained in:
parent
9a2660f939
commit
90d3b53505
20
autoenv.zsh
20
autoenv.zsh
@ -222,16 +222,16 @@ _autoenv_check_authorized_env_file() {
|
||||
return 1
|
||||
fi
|
||||
if ! _autoenv_authorized_env_file $1; then
|
||||
echo "Attempting to load unauthorized env file!"
|
||||
command ls -l $1
|
||||
echo ""
|
||||
echo "**********************************************"
|
||||
echo ""
|
||||
cat $1
|
||||
echo ""
|
||||
echo "**********************************************"
|
||||
echo ""
|
||||
echo -n "Would you like to authorize it? (type 'yes') "
|
||||
echo "Attempting to load unauthorized env file!" >&2
|
||||
command ls -l $1 >&2
|
||||
echo "" >&2
|
||||
echo "**********************************************" >&2
|
||||
echo "" >&2
|
||||
cat $1 >&2
|
||||
echo "" >&2
|
||||
echo "**********************************************" >&2
|
||||
echo "" >&2
|
||||
echo -n "Would you like to authorize it? (type 'yes') " >&2
|
||||
# echo "Would you like to authorize it?"
|
||||
# echo "('yes' to allow, 'no' to not being asked again; otherwise ignore it for the shell) "
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user