rsync-deployments/agent-start

8 lines
166 B
Text
Raw Normal View History

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