aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
Diffstat (limited to '.functions')
-rw-r--r--.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/.functions b/.functions
index 931bbf7..ddb0f82 100644
--- a/.functions
+++ b/.functions
@@ -13,7 +13,7 @@ fi
# Create a data URL from a file
function dataurl() {
- local mimeType=$(file --mime-type "$1" | cut -d ' ' -f2)
+ local mimeType=$(file -b --mime-type "$1")
if [[ $mimeType == text/* ]]; then
mimeType="${mimeType};charset=utf-8"
fi