This commit is contained in:
Piotr Domański 2025-05-26 22:04:53 +02:00
parent 91dc936adb
commit 14d3c32ac3

View file

@ -1,8 +1,6 @@
if [[ "$(uname)" != "Darwin" ]]; then if [[ "$(uname)" != "Darwin" ]]; then
if type ssh-agent &>/dev/null; then if type ssh-agent &>/dev/null; then
ssh-add &>/dev/null || eval `ssh-agent -s` pidof ssh-agent || eval `ssh-agent -s`
if [[ "$(ssh-add -l)" == "The agent has no identities." ]] ; then ssh-add -l &>/dev/null || sh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa
fi
fi fi
fi fi