From 55ccb8291b36e7a03e3856d4c4c686815268c039 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 13 Oct 2009 08:44:59 +0530 Subject: [PATCH] easy install: change ssh-agent detection use ssh-add -l instead of $SSH_AGENT_PID to decide if agent is running --- src/00-easy-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/00-easy-install.sh b/src/00-easy-install.sh index ee5d943..fa148c7 100755 --- a/src/00-easy-install.sh +++ b/src/00-easy-install.sh @@ -157,7 +157,7 @@ fi # called SSH_AGENT_PID in your "env"), you should add this new key. The # command is "ssh-add ~/.ssh/sitaram" -if [[ -n $SSH_AGENT_PID ]] +if ssh-add -l &>/dev/null then prompt "you're running ssh-agent. We'll try and do an ssh-add of the private key we just created, otherwise this key won't get picked up. If