X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=blobdiff_plain;f=ssh-agent-shell;h=3007c4e23a46295f1806bc7d028361dbe55f56cd;hp=f32402e6cc28032d8df1c8cbbdab547b7a0faa83;hb=c750295af1ae879b6aa974bd750cd101eb54fc12;hpb=fe13229ecf159cad31fe89c2e311f2b441ba1edf 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 "$@"