mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-25 06:36:32 +00:00
Merge "Make svg_check.sh verbose"
This commit is contained in:
commit
a9dd923651
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue