sh/bash/gpg.sh

6 lines
162 B
Bash
Raw Normal View History

2023-05-15 07:01:00 +00:00
if [ ${EUID} -ne 0 ] ; then
2023-07-19 20:08:40 +00:00
if [ -f "${HOME}/.gnupg/gpg-agent.conf" ] ; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
2023-05-15 07:01:00 +00:00
fi