File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 67
67
echo
68
68
echo ' Testing for broken links'
69
69
echo
70
+ problematic_urls='
71
+ https://www.gnu.org/licenses/agpl-3.0.html
72
+ '
70
73
pushd " $BUILDROOT " > /dev/null
71
74
WEBSITE=' https://kernc\.github\.io/backtesting\.py'
72
75
grep -PR ' <a .*?href=' |
@@ -95,7 +98,10 @@ print(html.unescape(unquote(sys.argv[-1])))' "$url")"
95
98
if [ -f " $target_file " ]; then continue ; fi
96
99
97
100
url=" ${url// /% 20} "
98
- curl --silent --fail --retry 5 --retry-delay 5 --user-agent ' Mozilla/5.0 Firefox 101' " $url " > /dev/null 2>&1 ||
101
+ echo " $url "
102
+ curl --silent --fail --retry 2 --retry-delay 2 --connect-timeout 10 \
103
+ --user-agent ' Mozilla/5.0 Firefox 128' " $url " > /dev/null 2>&1 ||
104
+ grep -qF " $url " <( echo " $problematic_urls " ) ||
99
105
die " broken link in $file : $url "
100
106
done
101
107
done
You can’t perform that action at this time.
0 commit comments