aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-07-15 14:49:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-07-15 14:49:53 -0300
commit37df80d7afc8d36d3abff4e92102a3319d93e480 (patch)
treee44266b2c45fb72421a80d022b416e20b1db65b6
parent9928e78fc315713ae371d33f30f5bba5d5915024 (diff)
downloadutils-ssh-37df80d7afc8d36d3abff4e92102a3319d93e480.tar.gz
utils-ssh-37df80d7afc8d36d3abff4e92102a3319d93e480.tar.bz2
Check for OpenPGP secret keys before loading monkeysphere at ssh-agent-loadkeys (2)
-rwxr-xr-xssh-agent-loadkeys2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-agent-loadkeys b/ssh-agent-loadkeys
index 47e7b90..48b4233 100755
--- a/ssh-agent-loadkeys
+++ b/ssh-agent-loadkeys
@@ -23,7 +23,7 @@ if [ -x '/usr/bin/keychain' ]; then
# Check for monkeysphere
if [ -x '/usr/bin/monkeysphere' ]; then
- if ! ssh-add -l &> /dev/null && gpg --list-secret-keys &> /dev/null; then
+ if ! ssh-add -l &> /dev/null && [ "`gpg --list-secret-keys`" != "0" ]; then
monkeysphere subkey-to-ssh-agent
fi
fi