]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Work around weird linkchecker issue raised in #2539 2545/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 27 May 2015 09:11:41 +0000 (11:11 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 27 May 2015 09:11:41 +0000 (11:11 +0200)
docs/checklinks.sh

index 60296b39e10185ba47dbc1bec5e923daba1b4e2b..76a28558415fb1d5d9fc0bc6df06e582ebebaf16 100755 (executable)
@@ -8,6 +8,12 @@ OUTPUT=$(linkchecker \
   --ignore-url=woff$ \
   html/index.html 2>&1)
 
+# For some reason, the exit code _can_ be misleading. see
+# https://github.com/PowerDNS/pdns/pull/2539#issuecomment-105659608 and
+# https://github.com/wummel/linkchecker/issues/217
+
+echo "$OUTPUT" | grep -q '0 errors found'
+
 if [ $? -ne 0 ]; then
   echo "Errors in links detected, log follows:"
   echo "$OUTPUT"