From: Pieter Lexis Date: Wed, 27 May 2015 09:11:41 +0000 (+0200) Subject: Work around weird linkchecker issue raised in #2539 X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~28^2~37^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2545%2Fhead;p=thirdparty%2Fpdns.git Work around weird linkchecker issue raised in #2539 --- diff --git a/docs/checklinks.sh b/docs/checklinks.sh index 60296b39e1..76a2855841 100755 --- a/docs/checklinks.sh +++ b/docs/checklinks.sh @@ -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"