support more archive formats

pull/10/head
Raphaël Vinot 2013-06-04 18:16:40 +02:00
parent 6de31e562d
commit 995d40ba96
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ following theses rules (based on the mime type):
- x-gzip|x-tar|x-7z-compressed => compressed file - x-gzip|x-tar|x-7z-compressed => compressed file
- octet-stream => direct copy - octet-stream => direct copy
Compressed files (x-gzip|x-tar|x-7z-compressed): Compressed files (zip|x-rar|x-bzip2|x-lzip|x-lzma|x-lzop|x-xz|x-compress|x-gzip|x-tar|*compressed):
- Unpacking of archives - Unpacking of archives
- Recursively run the rules on the unpacked files - Recursively run the rules on the unpacked files

View File

@ -88,7 +88,7 @@ application(){
echo "Win executable" echo "Win executable"
copy ${src_file} DANGEROUS_${dst_file}_DANGEROUS copy ${src_file} DANGEROUS_${dst_file}_DANGEROUS
;; ;;
x-gzip|x-tar|x-7z-compressed) zip|x-rar|x-bzip2|x-lzip|x-lzma|x-lzop|x-xz|x-compress|x-gzip|x-tar|*compressed)
echo "Compressed file" echo "Compressed file"
archive ${src_file} ${dst_file} archive ${src_file} ${dst_file}
;; ;;