Remove stale agent socket.
authorIain Patterson <me@iain.cx>
Sat, 17 Mar 2007 09:12:15 +0000 (09:12 +0000)
committerIain Patterson <me@iain.cx>
Sat, 17 Mar 2007 09:12:15 +0000 (09:12 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@39 6be0d1a5-5cfe-0310-89b6-964be062b18b

.profile.d/ssh.bashrc

index 4674bfc..1e02b1c 100644 (file)
@@ -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