From 70b43a0054a442d218abb68f1b81f1b033fee903 Mon Sep 17 00:00:00 2001 From: Chris Fleming Date: Tue, 5 Dec 2017 13:47:36 +0000 Subject: [PATCH] Removed unnessesary allocation of GPG_SSH_AUTH_SOCK --- plugins/gpg-agent/gpg-agent.plugin.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/gpg-agent/gpg-agent.plugin.zsh b/plugins/gpg-agent/gpg-agent.plugin.zsh index 5f03bb8e..6a94f598 100644 --- a/plugins/gpg-agent/gpg-agent.plugin.zsh +++ b/plugins/gpg-agent/gpg-agent.plugin.zsh @@ -9,9 +9,8 @@ fi export GPG_TTY=$(tty) # Set SSH to use gpg-agent if it's enabled -GPG_SSH_AUTH_SOCK="${AGENT_SOCK}.ssh" -if [ -S ${GPG_SSH_AUTH_SOCK} ]; then - export SSH_AUTH_SOCK=$GPG_SSH_AUTH_SOCK +if [ -S "${AGENT_SOCK}.ssh" ]; then + export SSH_AUTH_SOCK="${AGENT_SOCK}.ssh" unset SSH_AGENT_PID fi