From 3202ab8660b39371ed2252780c11371d0fe0aedc Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 27 May 2015 11:11:41 +0200 Subject: [PATCH] Work around weird linkchecker issue raised in #2539 --- docs/checklinks.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.47.2