aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xssh-agent-loadkeys2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-agent-loadkeys b/ssh-agent-loadkeys
index 48b4233..13a77e4 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`" != "0" ]; then
+ if ! ssh-add -l &> /dev/null && [ "`gpg --list-secret-keys | wc -l`" != "0" ]; then
monkeysphere subkey-to-ssh-agent
fi
fi