diff --git a/doc/build.sh b/doc/build.sh index a8cb3ca8..e53552cf 100755 --- a/doc/build.sh +++ b/doc/build.sh @@ -41,6 +41,9 @@ fi echo echo 'Testing for broken links' echo +problematic_urls=' +https://www.gnu.org/licenses/agpl-3.0.html +' pushd "$BUILDROOT" >/dev/null grep -PR '/dev/null 2>&1 || - die "broken link in $file: $url" + curl --silent --fail --retry 3 --retry-delay 1 --connect-timeout 10 \ + --user-agent 'Mozilla/5.0 Firefox 125' "$url" >/dev/null 2>&1 || + grep -qF "$url" <(echo "$problematic_urls") || + die "broken link in $file: $url" done done popd >/dev/null