That's meant to just be an id.

This commit is contained in:
John Internet 2020-01-02 22:48:55 +00:00
parent 73618b6bfb
commit 6cd1d3e4bd

View file

@ -14,22 +14,22 @@ else
fi fi
# And check our files exist. # And check our files exist.
if [ -f "$STORE_PATH/ssh-agent-id" ]; then if [ -f "$STORE_PATH/id" ]; then
# Grab our PID and socket. # Grab our PID and socket.
SSH_AGENT_PID=$(cat "$STORE_PATH/id") SSH_AGENT_PID=$(cat "$STORE_PATH/id")
export SSH_AGENT_PID export SSH_AGENT_PID
rm "$STORE_PATH/ssh-agent-id" rm "$STORE_PATH/id"
SSH_AUTH_SOCK=$(cat "$STORE_PATH/sock") SSH_AUTH_SOCK=$(cat "$STORE_PATH/sock")
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
rm "$STORE_PATH/ssh-auth-sock" rm "$STORE_PATH/sock"
rmdir "$STORE_PATH" rmdir "$STORE_PATH"
eval $(ssh-agent -k) >/dev/null eval $(ssh-agent -k) >/dev/null
exit $? exit $?
else else
echo "SSH_AGENT_PID not set, $STORE_PATH/ssh-auth-sock doesn't exist!" >&2 echo "SSH_AGENT_PID not set, $STORE_PATH/id doesn't exist!" >&2
exit 1 exit 1
fi fi
fi fi