From 52bb282c86617d22ea7eeca1101d54edf72fcdfd Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 8 Feb 2009 01:03:39 +0100 Subject: always set SSH_AGENT_SOCK to the symlink --- bashrc/common/ssh-agent-forwarding.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bashrc') diff --git a/bashrc/common/ssh-agent-forwarding.sh b/bashrc/common/ssh-agent-forwarding.sh index 4691578..b18ef75 100644 --- a/bashrc/common/ssh-agent-forwarding.sh +++ b/bashrc/common/ssh-agent-forwarding.sh @@ -19,7 +19,5 @@ if [ -n "$SSH_AUTH_SOCK" -a -n "$SSH_CLIENT" ]; then fi -if [ -z "$SSH_AUTH_SOCK" -a -r "${HOME}/.ssh-agent-forwarding" ]; then - SSH_AUTH_SOCK=$(tail -n 1 "${HOME}/.ssh-agent-forwarding" | cut -d" " -f2) - export SSH_AUTH_SOCK -fi +SSH_AUTH_SOCK="${HOME}/.ssh-agent-forwarded-sock" +export SSH_AUTH_SOCK -- cgit v1.2.3