Skip to content

Commit

Permalink
mgpg: use quiet to only print errors
Browse files Browse the repository at this point in the history
Else it can happen that gpg output is prepended to the message we
want to decode, and recursive decoding fails.
  • Loading branch information
leahneukirchen committed Jul 31, 2023
1 parent 07d064f commit 59ee2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/mgpg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 59ee2e0

Please sign in to comment.