github.com_burnett01_rsync-.../agent-start

8 lines
164 B
Text
Raw Normal View History

2020-01-02 16:57:06 +01:00
#!/bin/sh
# Start the SSH agent if it isn't already.
if [ -z "$SSH_AGENT_PID" ]; then
eval $(ssh-agent) > /dev/null
echo "$SSH_AGENT_PID" > /tmp/ssh-agent-id
fi