summaryrefslogtreecommitdiffstats
path: root/tools/gpg-zip.in
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-05-03 11:26:06 +0200
committerWerner Koch <wk@gnupg.org>2016-05-03 11:26:06 +0200
commit33aacc3d4bbd6a82d7e7ceca058970879741b7da (patch)
tree87d74f35156740dc845f8a5d6bfbd610f490fbf7 /tools/gpg-zip.in
parentgpg: Emit status lines TOFU_STATS and TOFU_STATS_LONG. (diff)
downloadgnupg2-33aacc3d4bbd6a82d7e7ceca058970879741b7da.tar.xz
gnupg2-33aacc3d4bbd6a82d7e7ceca058970879741b7da.zip
tests: Silence output of some tests.
* common/t-exechelp.c (print_open_fds): Silence non-verbose output. (test_close_all_fds): Ditto. * common/t-session-env.c (show_stdnames): Indent output. * g10/test.c (TEST): Silence non-verbose okay output. (exit_tests): Ditto. * tools/gpg-zip.in (tar_verbose_opt): Add option --quiet. * tests/openpgp/gpgtar.test (GPGZIP): Pass option --quiet. * tests/openpgp/mds.test: Indent MD5 notice. * tests/openpgp/version.test: Indent --version output. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/gpg-zip.in')
-rw-r--r--tools/gpg-zip.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gpg-zip.in b/tools/gpg-zip.in
index a6b423877..48c4766b1 100644
--- a/tools/gpg-zip.in
+++ b/tools/gpg-zip.in
@@ -34,6 +34,8 @@ Usage: gpg-zip [--help] [--version] [--encrypt] [--decrypt] [--symmetric]
Encrypt or sign files into an archive."
+tar_verbose_opt="v"
+
while test $# -gt 0 ; do
case $1 in
-h | --help | --h*)
@@ -113,6 +115,10 @@ while test $# -gt 0 ; do
shift
shift
;;
+ --quiet)
+ tar_verbose_opt=""
+ shift
+ ;;
--)
shift
break
@@ -135,7 +141,7 @@ elif test x$list = xyes ; then
cat "$1" | $GPG $gpg_args | $TAR $tar_args -tf -
elif test x$unpack = xyes ; then
# echo "cat \"$1\" | $GPG $gpg_args | $TAR $tar_args -xvf -" 1>&2
- cat "$1" | $GPG $gpg_args | $TAR $tar_args -xvf -
+ cat "$1" | $GPG $gpg_args | $TAR $tar_args -x${tar_verbose_opt}f -
else
echo "$usage" 1>&2
exit 1