From 87102955a3919cc76b2f6e473bd9f01417efd430 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Sat, 17 Mar 2007 09:12:15 +0000 Subject: [PATCH] Remove stale agent socket. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@39 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .profile.d/ssh.bashrc | 1 + 1 file changed, 1 insertion(+) 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 -- 2.20.1