Introduction
Introduction Statistics Contact Development Disclaimer Help
Use '-b' option with file(1) instead of cut(1). - various - Various utilities d…
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw…
Log
Files
Refs
Tags
---
commit 9dbe214f2615fe3bcf5159946c26aba09c5c939c
parent 9a3949c788a4072b06ff297ba9d8315f4f1e5106
Author: eidolon <[email protected]>
Date: Tue, 10 Jan 2023 00:31:17 -0500
Use '-b' option with file(1) instead of cut(1).
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M quinq-size | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/quinq-size b/quinq-size
@@ -8,7 +8,7 @@ fi
function toquinqsize {
filename="$1"
- mimetype="$(file --mime-type "${filename}" | cut -d':' -f 2 | cut -d' …
+ mimetype="$(file --mime-type -b "${filename}")"
output="${filename%.*}_quinqsize.${filename##*.}"
case "${mimetype}" in
image/*)
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.