blob: 4d94fb04a14a4dd7ebaea0f6c423d4817fcd3a42 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# add ssh-agent if found
sshagent="`which ssh-agent 2>/dev/null`"
if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
command="$sshagent -- $command"
elif [ -z "$sshagent" ] ; then
echo "$0: ssh-agent not found!"
fi
|