33dir=$( cd " $( dirname " $0 " ) /.." && pwd)
44bin=" $dir /_bin"
55root=" $dir /_site"
6+ any_failed=0
67test -d " $root " || {
78 echo " Please generate the site first."
89 echo " bundle exec jekyll serve"
@@ -12,28 +13,36 @@ test -d "$root" || {
1213echo " [Checking page generation]"
1314" $bin /check-page-generation.sh"
1415test $? -eq 0 && echo " --> Page generation looks good."
16+ test $? -eq 0 && any_failed=1
1517
1618echo
1719echo " [Checking user IDs]"
1820" $bin /check-user-ids.sh"
1921test $? -eq 0 && echo " --> User IDs look good."
22+ test $? -eq 0 && any_failed=1
2023
2124echo
2225echo " [Checking include usage]"
2326" $bin /check-include-usage.sh"
2427test $? -eq 0 && echo " --> Includes look good."
28+ test $? -eq 0 && any_failed=1
2529
2630echo
2731echo " [Checking include documentation]"
2832" $bin /check-include-help.sh"
2933test $? -eq 0 && echo " --> Include docs look good."
34+ test $? -eq 0 && any_failed=1
3035
3136echo
3237echo " [Checking HTML element id values]"
3338" $bin /check-html-ids.sh"
3439test $? -eq 0 && echo " --> HTML element ids look good."
40+ test $? -eq 0 && any_failed=1
3541
3642echo
3743echo " [Checking site HTML]"
3844" $bin /check-site-html.sh"
3945test $? -eq 0 && echo " --> Site HTML looks good! Congratulations."
46+ test $? -eq 0 && any_failed=1
47+
48+ exit $any_failed
0 commit comments