diff --git a/plugins/gpg-agent/gpg-agent.plugin.zsh b/plugins/gpg-agent/gpg-agent.plugin.zsh index 58b923181..176099a55 100644 --- a/plugins/gpg-agent/gpg-agent.plugin.zsh +++ b/plugins/gpg-agent/gpg-agent.plugin.zsh @@ -30,7 +30,7 @@ if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then if ssh-add -l > /dev/null 2> /dev/null; then # ssh-agent running, start gpg-agent without ssh support start_agent_nossh; - else if [][ "$OSTYPE" = "darwin"* ]; then + elif [[ "$OSTYPE" = "darwin"* ]]; then start_agent_nossh else # otherwise start gpg-agent with ssh support