diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-08 01:03:39 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-08 01:03:39 +0100 |
commit | 52bb282c86617d22ea7eeca1101d54edf72fcdfd (patch) | |
tree | a609d2f72eb4e1064a8b6810b574878bb6087fcc /bashrc/common | |
parent | 9c3bb67a76025b70a65b9626dfdb24baf1073a26 (diff) | |
download | dotfiles-52bb282c86617d22ea7eeca1101d54edf72fcdfd.tar.gz dotfiles-52bb282c86617d22ea7eeca1101d54edf72fcdfd.tar.xz dotfiles-52bb282c86617d22ea7eeca1101d54edf72fcdfd.zip |
always set SSH_AGENT_SOCK to the symlink
Diffstat (limited to 'bashrc/common')
-rw-r--r-- | bashrc/common/ssh-agent-forwarding.sh | 6 |
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 |