From: Colin Watson Date: Thu, 27 Mar 2003 14:28:45 +0000 (+0000) Subject: ssh-agent-shell: Sigh. The sense of the $SSH_AGENT_PID check was exactly X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=64f11aa7ea482f59acddd961c62561dda9598156;p=bin.git ssh-agent-shell: Sigh. The sense of the $SSH_AGENT_PID check was exactly wrong; I thought something was odd but never realized it was this simple. --- diff --git a/ssh-agent-shell b/ssh-agent-shell index f32402e..3007c4e 100755 --- a/ssh-agent-shell +++ b/ssh-agent-shell @@ -1,5 +1,5 @@ #! /bin/sh -if [ -n "$SSH_AGENT_PID" ]; then +if [ -z "$SSH_AGENT_PID" ]; then exec ssh-agent bash "$@" else exec bash "$@"