Fix SSH detection
This commit is contained in:
parent
2a73c55a40
commit
7f8f753037
1 changed files with 2 additions and 2 deletions
|
@ -250,8 +250,8 @@ case $- in
|
|||
;;
|
||||
esac
|
||||
|
||||
if test -S $SSH_AUTH_SOCK && test -r $HOME/.ssh/id_rsa && [ $(ssh-add -l | grep "$HOME/.ssh/id_rsa" | wc -l) = 0 ]; then
|
||||
ssh-add $HOME/.ssh/id_rsa
|
||||
if test -S "$SSH_AUTH_SOCK" && test -r "$HOME/.ssh/id_rsa" && [ $(ssh-add -l | grep "$HOME/.ssh/id_rsa" | wc -l) = 0 ]; then
|
||||
ssh-add "$HOME/.ssh/id_rsa"
|
||||
fi
|
||||
|
||||
if [ -r $HOME/.shrc.$(hostname -s) ]; then
|
||||
|
|
Loading…
Reference in a new issue