mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2024-11-24 00:13:46 +01:00
Notify if it's already running.
This commit is contained in:
parent
9660fcb269
commit
7c0a4562df
1 changed files with 3 additions and 0 deletions
|
@ -4,4 +4,7 @@
|
|||
if [ -z "$SSH_AGENT_PID" ]; then
|
||||
eval $(ssh-agent) > /dev/null
|
||||
echo "$SSH_AGENT_PID" > /tmp/ssh-agent-id
|
||||
echo "Started SSH Agent. PID: $SSH_AGENT_PID"
|
||||
else
|
||||
echo "SSH Agent Running. PID: $SSH_AGENT_PID"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue