diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-07-15 14:52:18 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-07-15 14:52:18 -0300 |
commit | 90e689a65f2d6029979753b98b3da3eff4510c26 (patch) | |
tree | 7dcfce6a339033b18edffb3e1ed7ae4c4884eb01 | |
parent | 37df80d7afc8d36d3abff4e92102a3319d93e480 (diff) | |
download | utils-ssh-90e689a65f2d6029979753b98b3da3eff4510c26.tar.gz utils-ssh-90e689a65f2d6029979753b98b3da3eff4510c26.tar.bz2 |
Check for OpenPGP secret keys before loading monkeysphere at ssh-agent-loadkeys (3)
-rwxr-xr-x | ssh-agent-loadkeys | 2 |
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 |