1
0
Fork 0

Only set GPG_TTY in a real TTY

This commit is contained in:
Nexus 2024-07-14 02:09:58 +01:00
parent d53a48fe99
commit 104ac5c719
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -146,5 +146,7 @@ unset rc
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi
if [ -t 0 ]; then
GPG_TTY=$(tty)
export GPG_TTY
fi;