Do not hardcode SSH agent socket path.
This commit is contained in:
@@ -42,7 +42,7 @@ fi
|
||||
# Set SSH to use gpg-agent
|
||||
unset SSH_AGENT_PID
|
||||
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
|
||||
|
||||
# Set GPG TTY
|
||||
|
||||
Reference in New Issue
Block a user