Forgot to break;

This commit is contained in:
Jack L. Frost 2014-09-25 17:58:11 +04:00
parent 6b373d2aeb
commit 8ff05450d2

View File

@ -22,6 +22,7 @@ handle_file() {
for m in "${!mime_handlers[@]}"; do for m in "${!mime_handlers[@]}"; do
grep -oE "${mime_handlers[${m}]}" <<< "$target_mimetype" && { grep -oE "${mime_handlers[${m}]}" <<< "$target_mimetype" && {
"$m" "$target" "$m" "$target"
break
} }
done done
} }