scripts: remove gzip in preview script

`gzip -l` is disappointing (only outputs the archive's info). Use bsdtar instead.
This commit is contained in:
Hoang Nguyen 2024-02-09 00:00:00 +07:00
parent a2d843d72e
commit de4bc58e0d
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
1 changed files with 1 additions and 5 deletions

View File

@ -166,11 +166,7 @@ if [[ $mimetype == application/x-cpio* ]]; then
exit
fi
if [[ $mimetype == application/?(x-)gzip ]]; then
gzip -l "$FILE"; exit
fi
if [[ $mimetype == @(application/vnd.ms-cab-compressed|application/x-archive|application/?(x-)bzip*\
if [[ $mimetype == @(application/?(x-)gzip|application/vnd.ms-cab-compressed|application/x-archive|application/?(x-)bzip*\
|application/x-lzma|application/x-lzip|application/x-lha|application/x-lzh-compressed|application/x-lhz\
|application/x-lzop|application/x-lz4|application/x-lrzip) ]]; then
bsdtar -tf "$FILE"; exit