filetype detection fix

This commit is contained in:
Jack L. Frost 2015-07-19 21:51:22 +03:00
parent 0deb0b449c
commit 6afb99d1ce

View File

@ -23,7 +23,7 @@ handle_uri() {
} }
handle_mime() { handle_mime() {
target_mimetype=$(file -ib "$target") IFS=';' read target_mimetype charset <<< $( file -ib "$target" )
for m in "${mime_handlers[@]}"; do for m in "${mime_handlers[@]}"; do
IFS='=' read cmd regex <<< "$m" IFS='=' read cmd regex <<< "$m"