X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fssh.bashrc;h=1e02b1c699be018bfba256310b159c5e2abe8a16;hb=d4e50810bbf08371d1875a7c71dd98bb84f44c24;hp=4674bfc34892ba83d808d63f8db5c52040c00d57;hpb=aeda6a0753ac462d2a9d7da89d58ff5f3b61c2eb;p=profile.git diff --git a/.profile.d/ssh.bashrc b/.profile.d/ssh.bashrc index 4674bfc..1e02b1c 100644 --- a/.profile.d/ssh.bashrc +++ b/.profile.d/ssh.bashrc @@ -19,6 +19,7 @@ if [ $UID -gt 0 ]; then unset SSH_AGENT_PID unset SSH_AUTH_SOCK # Start ssh-agent up then. + rm -f "$SOCKET" eval $(/usr/bin/ssh-agent -a "$SOCKET" -s) trap "kill $SSH_AGENT_PID" 0 ssh-add