scripts: remove gzip in preview script
`gzip -l` is disappointing (only outputs the archive's info). Use bsdtar instead.
This commit is contained in:
parent
a2d843d72e
commit
de4bc58e0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue