Make svg_check.sh verbose
So we know what is going on while the CPU is being busy. Change-Id: I34a7ecadf549833025a197d72ca131888519a92a
This commit is contained in:
parent
a38b4f8038
commit
8a220e372c
|
@ -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 New Issue