chiark / gitweb /
ssh-agent-shell: Sigh. The sense of the $SSH_AGENT_PID check was exactly
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 27 Mar 2003 14:28:45 +0000 (14:28 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 27 Mar 2003 14:28:45 +0000 (14:28 +0000)
wrong; I thought something was odd but never realized it was this simple.

ssh-agent-shell

index f32402e6cc28032d8df1c8cbbdab547b7a0faa83..3007c4e23a46295f1806bc7d028361dbe55f56cd 100755 (executable)
@@ -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 "$@"