sh/bash/gpg.sh

7 lines
224 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)"
gpg-connect-agent updatestartuptty /bye > '/dev/null'
fi
2023-05-15 07:01:00 +00:00
fi