summaryrefslogtreecommitdiff
path: root/src/share
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-19 03:03:26 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-19 03:03:26 -0500
commit6b8fa8b2843521c21c57125a88f31ca45c5c8148 (patch)
treeb841d040e1c156e86389c447b41ce54c4a7ebf0d /src/share
parente1853a59e0421ee61b5066179632b9fc31116717 (diff)
dump gpg --import error spew to /dev/null during hackish uses of gpg
Diffstat (limited to 'src/share')
-rw-r--r--src/share/common4
1 files changed, 2 insertions, 2 deletions
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"