From 59ee2e0ab9f6721ffb6e0b686582d1d121b7a6cf Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 31 Jul 2023 21:12:38 +0200 Subject: [PATCH] mgpg: use quiet to only print errors Else it can happen that gpg output is prepended to the message we want to decode, and recursive decoding fails. --- contrib/mgpg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mgpg b/contrib/mgpg index 4a46701..4190501 100755 --- a/contrib/mgpg +++ b/contrib/mgpg @@ -20,7 +20,7 @@ n=$(mshow -t "$tmp" | awk -F: ' /: application\/octet-stream/ {if (supported) print $1}') if [ "$n" ]; then - mshow -O "$tmp" "$n" | $GPG -d 2>&1 || exit 0 + mshow -O "$tmp" "$n" | $GPG --quiet -d 2>&1 || exit 0 exit 64 fi exit 63