aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-04-10 09:55:07 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-04-10 09:55:07 -0300
commit9188a1f8db885c3dc969b1887a04cc6d5d7befcb (patch)
treee9c89cf06e89365a0940658190c9c0fc899b970a
parent24f8166df3edf7d0cb33cc3861e975019d41d01e (diff)
downloadutils-ssh-9188a1f8db885c3dc969b1887a04cc6d5d7befcb.tar.gz
utils-ssh-9188a1f8db885c3dc969b1887a04cc6d5d7befcb.tar.bz2
Fix: ssh-agent-eval: check for monkeysphere
-rwxr-xr-xssh-agent-eval5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssh-agent-eval b/ssh-agent-eval
index 2edf711..82d6fb1 100755
--- a/ssh-agent-eval
+++ b/ssh-agent-eval
@@ -30,7 +30,10 @@ function start_agent {
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add;
- /usr/bin/monkeysphere subkey-to-ssh-agent
+
+ if [ -x "/usr/bin/monkeysphere" ]; then
+ /usr/bin/monkeysphere subkey-to-ssh-agent
+ fi
}
# Source SSH settings, if applicable