diff --git a/dev-scripts/svg_check.sh b/dev-scripts/svg_check.sh index 220e43449..db45f9157 100755 --- a/dev-scripts/svg_check.sh +++ b/dev-scripts/svg_check.sh @@ -3,10 +3,13 @@ found=0 while read -r svgfile; do outfile="$svgfile.tmp" + echo -n "Checking compression: $svgfile ... " node_modules/.bin/svgo --config .svgo.yml -i "$svgfile" -o "$outfile" -q if [ "$(wc -c < "$svgfile")" -gt "$(wc -c < "$outfile")" ]; then - echo "File $svgfile is not compressed." + echo -e "\nERR> file $svgfile is not compressed." found=$((found + 1)) + else + echo "OK" fi rm "$outfile" done < <(find resources -type f -name '*.svg')