1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-29 09:10:07 +00:00

Fix wrong $GNUPGHOME usage in gpg-agent plugin (#6403)

$GNUPGHOME variable was used incorrectly and caused a grep error when
set.
This commit is contained in:
Paweł Czochański 2017-11-08 23:02:38 +01:00 committed by Robby Russell
parent 7a7480b987
commit 2c87f85ad5

View file

@ -6,7 +6,7 @@ if [ ! -S $GPG_AGENT_SOCKET ]; then
fi fi
# Set SSH to use gpg-agent if it is configured to do so # Set SSH to use gpg-agent if it is configured to do so
GNUPGCONFIG=${GNUPGHOME:-"$HOME/.gnupg/gpg-agent.conf"} GNUPGCONFIG="${GNUPGHOME:-"$HOME/.gnupg"}/gpg-agent.conf"
if [ -r "$GNUPGCONFIG" ] && grep -q enable-ssh-support "$GNUPGCONFIG"; then if [ -r "$GNUPGCONFIG" ] && grep -q enable-ssh-support "$GNUPGCONFIG"; then
unset SSH_AGENT_PID unset SSH_AGENT_PID
export SSH_AUTH_SOCK=$GPG_AGENT_SOCKET export SSH_AUTH_SOCK=$GPG_AGENT_SOCKET