From 8a220e372c5ce7f1b1e97e180c1af829bed1aba9 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 11 Dec 2017 16:50:56 +0100 Subject: [PATCH] Make svg_check.sh verbose So we know what is going on while the CPU is being busy. Change-Id: I34a7ecadf549833025a197d72ca131888519a92a --- dev-scripts/svg_check.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')