diff options
author | Adam Borowski <kilobyte@angband.pl> | 2020-09-25 03:35:18 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2020-12-05 22:39:03 +0200 |
commit | 1890351f3423627ba5c4c495402f32d7e9ed90b7 (patch) | |
tree | 280cac1f708b29e57c8f9256879c47ca69660423 /src/scripts/xzgrep.in | |
parent | CMake: Fix compatibility with CMake 3.13. (diff) | |
download | xz-1890351f3423627ba5c4c495402f32d7e9ed90b7.tar.xz |
Scripts: Add zstd support to xzgrep.
Thanks to Adam Borowski.
Diffstat (limited to 'src/scripts/xzgrep.in')
-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. |