Do not hardcode SSH agent socket path.

This commit is contained in:
2016-08-03 23:09:53 +02:00
parent 21bbff700c
commit ddd22fc5e4

View File

@@ -42,7 +42,7 @@ fi
# Set SSH to use gpg-agent # Set SSH to use gpg-agent
unset SSH_AGENT_PID unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi fi
# Set GPG TTY # Set GPG TTY