From 12f716896104600e30a5126eec0e913e85945079 Mon Sep 17 00:00:00 2001 From: Spirit Date: Tue, 27 Aug 2024 18:56:15 +0300 Subject: [PATCH] use `icon` inestead of the legacy `shortcut icon` --- html-minify.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html-minify.sh b/html-minify.sh index 22f64e8..40a5ba2 100755 --- a/html-minify.sh +++ b/html-minify.sh @@ -28,7 +28,7 @@ if [[ -f "$html_file" ]]; then } else if (match($0, //)) { file = substr($0, RSTART+29, RLENGTH-31) print "´"file"´\n"substr($0, RSTART+31+length(file)) - } else if (match($0, //)) { + } else if (match($0, //)) { file = substr($0, RSTART+53, RLENGTH-55) print "´SVG:"file"´\n"substr($0, RSTART+55+length(file)) } else { @@ -47,7 +47,7 @@ if [[ -f "$html_file" ]]; then original_sizes=$(($original_sizes + $(stat -c %s $file))) svgo "$file" -o "min.${file}" svg_content=$(cat "min.${file}" | sed 's//\%3E/g; s/#/\%23/g; s/"/'"'"'/g') - sed -i "s|´SVG:${file}´||" "${html_file}.tmp" + sed -i "s|´SVG:${file}´||" "${html_file}.tmp" else echo "Warning: SVG file $file not found." fi