Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

easy install: change ssh-agent detection

use ssh-add -l instead of $SSH_AGENT_PID to decide if agent is running
  • Loading branch information...
commit 55ccb8291b36e7a03e3856d4c4c686815268c039 1 parent d125488
Sitaram Chamarty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/00-easy-install.sh
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.