Notify if it's already running.

This commit is contained in:
John Internet 2020-01-02 16:28:48 +00:00
parent 9660fcb269
commit 7c0a4562df

View file

@ -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