Only set GPG_TTY in a real TTY
This commit is contained in:
parent
d53a48fe99
commit
104ac5c719
1 changed files with 4 additions and 2 deletions
6
.bashrc
6
.bashrc
|
@ -146,5 +146,7 @@ unset rc
|
|||
if [ -f "$HOME/.cargo/env" ]; then
|
||||
. "$HOME/.cargo/env"
|
||||
fi
|
||||
GPG_TTY=$(tty)
|
||||
export GPG_TTY
|
||||
if [ -t 0 ]; then
|
||||
GPG_TTY=$(tty)
|
||||
export GPG_TTY
|
||||
fi;
|
||||
|
|
Loading…
Reference in a new issue