From: Iain Patterson Date: Sat, 17 Mar 2007 09:12:15 +0000 (+0000) Subject: Remove stale agent socket. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=87102955a3919cc76b2f6e473bd9f01417efd430;hp=9bc7cefe316314c162241101a15de05d96033256;p=profile.git Remove stale agent socket. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@39 6be0d1a5-5cfe-0310-89b6-964be062b18b --- 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