aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/xzgrep.in
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-11 12:23:58 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-11 12:23:58 +0200
commitd76c752a6d77052e5ad57ade555082585f7ac5d8 (patch)
treedbfee7586de09901d7bb779fe0fc47e58b049cfa /src/scripts/xzgrep.in
parentTranslations: Rename poa4/fr_FR.po to po4a/fr.po. (diff)
downloadxz-d76c752a6d77052e5ad57ade555082585f7ac5d8.tar.xz
Scripts: Ignore warnings from xz.
In practice this means making the scripts work when the input files have an unsupported check type which isn't a problem in practice unless support for some check types has been disabled at build time.
Diffstat (limited to '')
-rw-r--r--src/scripts/xzgrep.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in
index 449f0e61..490e47d7 100644
--- a/src/scripts/xzgrep.in
+++ b/src/scripts/xzgrep.in
@@ -180,7 +180,7 @@ for i; do
*[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdf";;
*[-.]lzo | *[-.]tzo) uncompress="lzop -cdf";;
*[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";; # zstd needs -q.
- *) uncompress="$xz -cdf";;
+ *) uncompress="$xz -cdfqQ";; # -qQ to ignore warnings like unsupp. check.
esac
# xz_status will hold the decompressor's exit status.
# Exit status of grep (and in rare cases, printf or sed) is