fix: only export GPG_TTY if gpg is installed
This commit is contained in:
parent
7b205e5b2b
commit
a9bec11e31
1 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,9 @@
|
||||||
# It is important that this environment variable always reflects the out‐
|
# It is important that this environment variable always reflects the out‐
|
||||||
# put of the tty command.
|
# put of the tty command.
|
||||||
|
|
||||||
GPG_TTY=$(tty)
|
if command -v gpg-agent &> /dev/null; then
|
||||||
export GPG_TTY
|
GPG_TTY=$(tty)
|
||||||
|
export GPG_TTY
|
||||||
|
fi
|
||||||
|
|
||||||
# vim: ft=zsh expandtab tabstop=2 shiftwidth=2
|
# vim: ft=zsh expandtab tabstop=2 shiftwidth=2
|
||||||
|
|
Loading…
Reference in a new issue