We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e2d9f commit 8f381a6Copy full SHA for 8f381a6
hack/verify-markdown-link.sh
@@ -48,7 +48,16 @@ extract_external_links() {
48
49
validate_url() {
50
local url="$1"
51
- local http_status=$(curl -o /dev/null -s -w "%{http_code}\n" "$url")
+ local http_status=$(curl -o /dev/null -s -w "%{http_code}\n" "$url")
52
+ local excluded_domains=("foo.ns.service.cluster.local")
53
+
54
+ # Check if the URL contains any of the excluded domains
55
+ for excluded_domain in "${excluded_domains[@]}"; do
56
+ if [[ "$url" == *"$excluded_domain"* ]]; then
57
+ log_info "Skipping excluded URL: $url"
58
+ return 0
59
+ fi
60
+ done
61
62
# Check if the status code indicates success (200-399)
63
if [[ "$http_status" -ge 200 && "$http_status" -lt 400 ]]; then
0 commit comments