gpg agent if configuration

This commit is contained in:
Marc Beninca 2023-07-19 22:08:40 +02:00
parent 97f74cb623
commit fde55c7c04

View file

@ -1,4 +1,6 @@
if [ ${EUID} -ne 0 ] ; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
gpg-connect-agent updatestartuptty /bye > '/dev/null'
if [ -f "${HOME}/.gnupg/gpg-agent.conf" ] ; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
gpg-connect-agent updatestartuptty /bye > '/dev/null'
fi
fi