Don't use --mime-type
The `file` command on OS X takes the --mime-type option, which returns only the type and not the optional encoding. This is nice, but it's not portable. Use --mime and strip the encoding off if it's there. And don't forget this time.
Showing
Please
register
or
sign in
to comment