diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-22 17:56:30 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-22 17:56:30 -0500 |
commit | 47b5e916b2a84a378ec08b3b03531f9a8ccc062b (patch) | |
tree | e0fed9b7b10057c01758c7de417b6c01e6118f43 /src | |
parent | 5ebbfc2d643fbee80b5d53a7b326fd12d9202caa (diff) |
egrep -q terminates at the first match. m-a list-identity-certifiers chokes if it cannot write to stdout. Because we are setting pipefail, this causes the pipeline checking for any certifiers to return untrue. solution? do not use -q, and send the output to /dev/null
Diffstat (limited to 'src')
-rw-r--r-- | src/share/ma/diagnostics | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/ma/diagnostics b/src/share/ma/diagnostics index 913a53d..8eca586 100644 --- a/src/share/ma/diagnostics +++ b/src/share/ma/diagnostics @@ -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: |