]> gitweb.fluxo.info Git - utils-ssh.git/commitdiff
Check for monkeysphere availability
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Oct 2017 22:37:14 +0000 (20:37 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Oct 2017 22:37:14 +0000 (20:37 -0200)
ssh-agent-loadkeys

index 5687ef6a151d418f53882374010ae792f5c05f49..608f73b565529da86b3f19a0b7efdd165c293b1d 100755 (executable)
@@ -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