mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2024-11-23 16:03:46 +01:00
Remove the files after we've read them.
This commit is contained in:
parent
e09a929e60
commit
fa30c8125a
1 changed files with 2 additions and 0 deletions
|
@ -20,9 +20,11 @@ else
|
|||
# Grab our PID and socket.
|
||||
SSH_AGENT_PID=$(cat "$STORE_PATH/ssh-agent-id")
|
||||
export SSH_AGENT_PID
|
||||
rm "$STORE_PATH/ssh-agent-id"
|
||||
|
||||
SSH_AUTH_SOCK=$(cat "$STORE_PATH/ssh-auth-sock")
|
||||
export SSH_AUTH_SOCK
|
||||
rm "$STORE_PATH/ssh-auth-sock"
|
||||
|
||||
eval $(ssh-agent -k) >/dev/null
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue