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.
|
# 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 $?
|
||||||
|
|
Loading…
Reference in a new issue