From: Daniel Kahn Gillmor Date: Tue, 19 Jan 2010 08:03:26 +0000 (-0500) Subject: dump gpg --import error spew to /dev/null during hackish uses of gpg X-Git-Tag: monkeysphere_0.28~6 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6b8fa8b2843521c21c57125a88f31ca45c5c8148;p=monkeysphere.git dump gpg --import error spew to /dev/null during hackish uses of gpg --- diff --git a/src/share/common b/src/share/common index 21f3065..e735319 100644 --- a/src/share/common +++ b/src/share/common @@ -1200,7 +1200,7 @@ process_authorized_user_ids() { list_primary_fingerprints() { local fake=$(msmktempdir) trap "rm -rf $fake" EXIT - GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict + GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict 2>/dev/null GNUPGHOME="$fake" gpg --with-colons --fingerprint --list-keys | \ awk -F: '/^fpr:/{ print $10 }' trap - EXIT @@ -1213,7 +1213,7 @@ list_primary_fingerprints() { get_cert_info() { local fake=$(msmktempdir) trap "rm -rf $fake" EXIT - GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict + GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict 2>/dev/null GNUPGHOME="$fake" gpg --with-colons --fingerprint --fixed-list-mode --list-keys "$1" trap - EXIT rm -rf "$fake"