fix syntax error in m-a diagnostics.
[monkeysphere.git] / src / monkeysphere-host
index fc3b607b02f82c3c53f59a1aafdbfe7932833b39..1b0de0cd7c4a60eec47af82d48eb663d3302da41 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) || true
+       | awk -F: '/^rvk:/{ print $10 }' )
     if [ "$revokers" ] ; then
        echo "The following keys are allowed to revoke this host key:"
        for key in $revokers ; do