Removed unnessesary allocation of GPG_SSH_AUTH_SOCK

This commit is contained in:
Chris Fleming 2017-12-05 13:47:36 +00:00 committed by GitHub
parent 8f75f950ef
commit 70b43a0054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,8 @@ fi
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
# Set SSH to use gpg-agent if it's enabled # Set SSH to use gpg-agent if it's enabled
GPG_SSH_AUTH_SOCK="${AGENT_SOCK}.ssh" if [ -S "${AGENT_SOCK}.ssh" ]; then
if [ -S ${GPG_SSH_AUTH_SOCK} ]; then export SSH_AUTH_SOCK="${AGENT_SOCK}.ssh"
export SSH_AUTH_SOCK=$GPG_SSH_AUTH_SOCK
unset SSH_AGENT_PID unset SSH_AGENT_PID
fi fi