]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
mdlinkcheck: exclude self from URL search
authorViktor Szakats <commit@vsz.me>
Tue, 9 Dec 2025 21:26:41 +0000 (22:26 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 9 Dec 2025 22:54:54 +0000 (23:54 +0100)
To avoid picking up the whitelist.

Closes #19909

scripts/mdlinkcheck

index c28f7dd1ed1afefa2659815b0d4670b7630c14ad..f83144108e3976b0d28e5a1907eced0e84a562dc 100755 (executable)
@@ -197,7 +197,9 @@ sub checkurl {
 
 for my $f (@files) {
     chomp $f;
-    findlinks($f);
+    if($f !~ /\/mdlinkcheck$/) {
+        findlinks($f);
+    }
 }
 
 #for my $u (sort keys %url) {