Skip to content

Commit

Permalink
Don't fail on the first fail, but accumulate fails
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Nov 28, 2023
1 parent 5decb46 commit 17dc490
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run_fontbakery.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh

set -e # make sure to abort on error
set -x # echo commands

mkdir -p build/fontbakery/

result=0

for folder in Bungee_Basic Bungee_Layers Bungee_Rotated Bungee_Color
do
for ttf in build/fonts/$folder/*.ttf
Expand All @@ -16,5 +17,10 @@ do
-x com.google.fonts/check/vertical_metrics_regressions \
--html build/fontbakery/$(basename $ttf .ttf).html \
$ttf
if [ $? -ne 0 ]; then
result=$((result+1))
fi
done
done

exit $result

0 comments on commit 17dc490

Please sign in to comment.