Support .zstd suffix only for decompression

This commit is contained in:
senhuang42
2020-09-18 12:49:51 -04:00
parent 05622992d5
commit 6b6cc80196
4 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -1128,10 +1128,13 @@ if [ $LZ4MODE -ne 1 ]; then
grep ".lz4" tmplg > $INTOVOID && die "Unsupported suffix listed"
fi
touch tmp1
zstd tmp1 -o tmp1.zstd
zstd -d tmp1.zstd # support .zstd suffix even though it's not the default suffix
println "\n===> tar extension tests "
rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4
rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4 tmp1.zstd
datagen > tmp
tar cf tmp.tar tmp