mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-27 14:48:17 +00:00
Notify if it's already running.
This commit is contained in:
@@ -4,4 +4,7 @@
|
|||||||
if [ -z "$SSH_AGENT_PID" ]; then
|
if [ -z "$SSH_AGENT_PID" ]; then
|
||||||
eval $(ssh-agent) > /dev/null
|
eval $(ssh-agent) > /dev/null
|
||||||
echo "$SSH_AGENT_PID" > /tmp/ssh-agent-id
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user