Notify if it's already running.
This commit is contained in:
parent
9660fcb269
commit
7c0a4562df
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user