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
|
if [ -f "$HOME/.cargo/env" ]; then
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
fi
|
fi
|
||||||
GPG_TTY=$(tty)
|
if [ -t 0 ]; then
|
||||||
export GPG_TTY
|
GPG_TTY=$(tty)
|
||||||
|
export GPG_TTY
|
||||||
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue