filetype detection fix

This commit is contained in:
Jack L. Frost 2015-07-19 21:51:22 +03:00
parent 0deb0b449c
commit 6afb99d1ce
1 changed files with 1 additions and 1 deletions

View File

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