Remove workarounds for misdetection of SVG files with no XML header in file

The issue was fixed in file 5.29 from 2015.

See-also: https://bugs.debian.org/829199
parent e65a3430
......@@ -19,10 +19,6 @@ if test -s "$1" ; then
else
# Check that the file is an image
mime=$(file --brief --mime-type "$2.tmp")
# Workaround https://bugs.debian.org/829199
if [ $mime = text/html ] && head -n1 "$2.tmp" | grep -q '^ *<svg[ >]' ; then
mime=image/svg+xml
fi
case $mime in
image/*)
mv --force "$2.tmp" "$2"
......
......@@ -19,10 +19,6 @@ if test -s "$1" ; then
else
# Check that the file is an image
mime=$(file --brief --mime-type "$2.tmp")
# Workaround https://bugs.debian.org/829199
if [ $mime = text/html ] && head -n1 "$2.tmp" | grep -q '^ *<svg[ >]' ; then
mime=image/svg+xml
fi
case $mime in
image/*)
mv --force "$2.tmp" "$2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment