Skip to content
Snippets Groups Projects
Commit d120eb82 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

refactor: summarize 3 LoC into 1 in get_mimetype()

parent 63ba5a5a
Branches
No related tags found
No related merge requests found
...@@ -164,9 +164,7 @@ error() { ...@@ -164,9 +164,7 @@ error() {
get_mimetype() { get_mimetype() {
local filename=$1 local filename=$1
local res echo "$( file --mime-type "$filename" | sed -e "s/^.*: //" )"
res=$(file --mime-type "$filename" | sed -e "s/^.*: //")
echo "$res"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment