Remove the files after we've read them.

This commit is contained in:
John Internet 2020-01-02 22:28:40 +00:00
parent e09a929e60
commit fa30c8125a

View file

@ -20,9 +20,11 @@ else
# Grab our PID and socket. # Grab our PID and socket.
SSH_AGENT_PID=$(cat "$STORE_PATH/ssh-agent-id") SSH_AGENT_PID=$(cat "$STORE_PATH/ssh-agent-id")
export SSH_AGENT_PID export SSH_AGENT_PID
rm "$STORE_PATH/ssh-agent-id"
SSH_AUTH_SOCK=$(cat "$STORE_PATH/ssh-auth-sock") SSH_AUTH_SOCK=$(cat "$STORE_PATH/ssh-auth-sock")
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
rm "$STORE_PATH/ssh-auth-sock"
eval $(ssh-agent -k) >/dev/null eval $(ssh-agent -k) >/dev/null
exit $? exit $?