sh/bash/gpg.sh
2024-03-31 23:35:16 +02:00

5 lines
162 B
Bash

if [ ${EUID} -ne 0 ] ; then
if [ -f "${HOME}/.gnupg/gpg-agent.conf" ] ; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
fi