3
3
dir=$( cd " $( dirname " $0 " ) /.." && pwd)
4
4
bin=" $dir /_bin"
5
5
root=" $dir /_site"
6
+ any_failed=0
6
7
test -d " $root " || {
7
8
echo " Please generate the site first."
8
9
echo " bundle exec jekyll serve"
@@ -12,28 +13,36 @@ test -d "$root" || {
12
13
echo " [Checking page generation]"
13
14
" $bin /check-page-generation.sh"
14
15
test $? -eq 0 && echo " --> Page generation looks good."
16
+ test $? -eq 0 && any_failed=1
15
17
16
18
echo
17
19
echo " [Checking user IDs]"
18
20
" $bin /check-user-ids.sh"
19
21
test $? -eq 0 && echo " --> User IDs look good."
22
+ test $? -eq 0 && any_failed=1
20
23
21
24
echo
22
25
echo " [Checking include usage]"
23
26
" $bin /check-include-usage.sh"
24
27
test $? -eq 0 && echo " --> Includes look good."
28
+ test $? -eq 0 && any_failed=1
25
29
26
30
echo
27
31
echo " [Checking include documentation]"
28
32
" $bin /check-include-help.sh"
29
33
test $? -eq 0 && echo " --> Include docs look good."
34
+ test $? -eq 0 && any_failed=1
30
35
31
36
echo
32
37
echo " [Checking HTML element id values]"
33
38
" $bin /check-html-ids.sh"
34
39
test $? -eq 0 && echo " --> HTML element ids look good."
40
+ test $? -eq 0 && any_failed=1
35
41
36
42
echo
37
43
echo " [Checking site HTML]"
38
44
" $bin /check-site-html.sh"
39
45
test $? -eq 0 && echo " --> Site HTML looks good! Congratulations."
46
+ test $? -eq 0 && any_failed=1
47
+
48
+ exit $any_failed
0 commit comments