diff options
author | Leah Neukirchen <leah@vuxu.org> | 2019-05-21 11:36:59 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2019-05-21 11:37:21 +0200 |
commit | 68272afcbae3470724eb6e44b692aab2aed3966a (patch) | |
tree | 7302be5b93217b3045c1b8c32de84c1228816469 /mcom | |
parent | a60e705e51b4fe3d3c5462b53b41359d556ea32c (diff) | |
download | mblaze-68272afcbae3470724eb6e44b692aab2aed3966a.tar.gz mblaze-68272afcbae3470724eb6e44b692aab2aed3966a.tar.xz mblaze-68272afcbae3470724eb6e44b692aab2aed3966a.zip |
mcom: use file --mime instead of file -i
This also works on macOS. Closes #162.
Diffstat (limited to 'mcom')
-rwxr-xr-x | mcom | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcom b/mcom index 91498c9..f4b65d9 100755 --- a/mcom +++ b/mcom @@ -79,7 +79,7 @@ do_mime() { msed '/attach/d' "$draft" for f in $(mhdr -M -h attach "$draft"); do printf '#%s %s\n' \ - "$(file -Lbi "$f" | sed 's/ //g')" \ + "$(file -Lb --mime "$f" | sed 's/ //g')" \ "$f" done ) | mmime >"$draftmime" |