diff options
author | Adam Borowski <kilobyte@angband.pl> | 2020-09-25 03:35:18 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-12 18:30:56 +0300 |
commit | 94fd72474973978f8369be7c23f77c3b741953a6 (patch) | |
tree | 6c835f6b4b5511fca4e50dbe30e96ec78f10cc85 /src/scripts/xzgrep.in | |
parent | CMake: Fix compatibility with CMake 3.13. (diff) | |
download | xz-94fd72474973978f8369be7c23f77c3b741953a6.tar.xz |
Scripts: Add zstd support to xzgrep.
Thanks to Adam Borowski.
Diffstat (limited to '')
-rw-r--r-- | src/scripts/xzgrep.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in index 9db5c3a8..28a777b3 100644 --- a/src/scripts/xzgrep.in +++ b/src/scripts/xzgrep.in @@ -159,6 +159,7 @@ for i; do *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdfq";; *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdfq";; *[-.]lzo | *[-.]tzo) uncompress="lzop -cdfq";; + *[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";; *) uncompress="$xz -cdfq";; esac # Fail if xz or grep (or sed) fails. |