egrep -q terminates at the first match. m-a list-identity-certifiers chokes if it...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 22 Feb 2009 22:56:30 +0000 (17:56 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 22 Feb 2009 22:56:30 +0000 (17:56 -0500)
src/share/ma/diagnostics

index 913a53d3af322473c3150e458c4c16554d715a6a..8eca5862fe258a17e3a4dc2f700b0ebd208e2a43 100644 (file)
@@ -103,7 +103,7 @@ fi
 # make sure that at least one identity certifier exists
 echo
 echo "Checking for Identity Certifiers..."
-if !( monkeysphere-authentication list-identity-certifiers | egrep -q '^[A-F0-9]{40}:' ) ; then
+if ! ( monkeysphere-authentication list-identity-certifiers | egrep '^[A-F0-9]{40}:' >/dev/null ) ; then
     echo "! No Identity Certifiers found!"
     echo " - Recommendation: once you know who should be able to certify the identities of 
      connecting users, you should add their key, with: