make show-key so that it works even if there are no revokers.
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 21 Feb 2009 22:30:54 +0000 (17:30 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Sat, 21 Feb 2009 22:30:54 +0000 (17:30 -0500)
src/monkeysphere-host

index 0dba1f62ef787cdd322196e5804c622a4981b130..fc3b607b02f82c3c53f59a1aafdbfe7932833b39 100755 (executable)
@@ -193,7 +193,7 @@ show_key() {
 
     # list revokers, if there are any
     revokers=$(gpg --list-keys --with-colons --fixed-list-mode \
-       | grep '^rvk:' | cut -d: -f10)
+       | grep '^rvk:' | cut -d: -f10) || true
     if [ "$revokers" ] ; then
        echo "The following keys are allowed to revoke this host key:"
        for key in $revokers ; do