summaryrefslogtreecommitdiffstats
path: root/bashrc/common
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-02-08 01:03:39 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2009-02-08 01:03:39 +0100
commit52bb282c86617d22ea7eeca1101d54edf72fcdfd (patch)
treea609d2f72eb4e1064a8b6810b574878bb6087fcc /bashrc/common
parent9c3bb67a76025b70a65b9626dfdb24baf1073a26 (diff)
downloaddotfiles-52bb282c86617d22ea7eeca1101d54edf72fcdfd.tar.gz
dotfiles-52bb282c86617d22ea7eeca1101d54edf72fcdfd.tar.xz
dotfiles-52bb282c86617d22ea7eeca1101d54edf72fcdfd.zip
always set SSH_AGENT_SOCK to the symlink
Diffstat (limited to '')
-rw-r--r--bashrc/common/ssh-agent-forwarding.sh6
1 files changed, 2 insertions, 4 deletions
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