Cat the agent ID?

This commit is contained in:
John Internet 2020-01-02 22:08:48 +00:00
parent 29ed9db523
commit d8263c4260

View file

@ -6,6 +6,7 @@ if [ ! -z "$SSH_AGENT_PID" ]; then
exit $? exit $?
elif [ -f "/tmp/ssh-agent-id" ]; then elif [ -f "/tmp/ssh-agent-id" ]; then
echo "File Exists" echo "File Exists"
cat /tmp/ssh-agent-id
SSH_AGENT_PID=$(cat /tmp/ssh-agent-id) SSH_AGENT_PID=$(cat /tmp/ssh-agent-id)
ssh-agent -k ssh-agent -k
exit $? exit $?