Fix gpg-agent

This commit is contained in:
Marko Korhonen 2021-04-21 17:46:54 +03:00
parent 6d6ffef7cf
commit edda8b9440

View file

@ -39,7 +39,7 @@ export AUR_PAGER=$PAGER
export GPG_TTY="$(tty)"
# set SSH_AUTH_SOCK if not logging in over SSH
if [ "$SSH_CONNECTION" != "" ]; then
if [ "$SSH_CONNECTION" -eq "" ]; then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
fi