From 7c0a4562df02eff7c0cfbcc4fc0bcade14c9aaeb Mon Sep 17 00:00:00 2001 From: John Internet Date: Thu, 2 Jan 2020 16:28:48 +0000 Subject: [PATCH] Notify if it's already running. --- agent-start | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent-start b/agent-start index 81affb6..5f919b6 100644 --- a/agent-start +++ b/agent-start @@ -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