aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-26 20:37:14 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-26 20:37:14 -0200
commit2ffe3f07bdab10abd2c2a6b98529c95ac18a8b6a (patch)
treeb3e6932bebd33e70da1e75044cdf3d7451ac168b
parent32ab57ed1e4412d2eba8200d9d1b45d6d78d613a (diff)
downloadutils-ssh-2ffe3f07bdab10abd2c2a6b98529c95ac18a8b6a.tar.gz
utils-ssh-2ffe3f07bdab10abd2c2a6b98529c95ac18a8b6a.tar.bz2
Check for monkeysphere availability
-rwxr-xr-xssh-agent-loadkeys6
1 files changed, 4 insertions, 2 deletions
diff --git a/ssh-agent-loadkeys b/ssh-agent-loadkeys
index 5687ef6..608f73b 100755
--- a/ssh-agent-loadkeys
+++ b/ssh-agent-loadkeys
@@ -4,8 +4,10 @@
# Uses monkeysphere and keychain
#
-if ! ssh-add -l &> /dev/null; then
- monkeysphere subkey-to-ssh-agent
+if [ -x '/usr/bin/monkeysphere' ]; then
+ if ! ssh-add -l &> /dev/null; then
+ monkeysphere subkey-to-ssh-agent
+ fi
fi
if [ -x '/usr/bin/keychain' ]; then