mdlinkcheck: enable warnings, fix them

fix a typo that made this error never detected:
```
%s ERROR links to missing URL %s
```
This commit is contained in:
Viktor Szakats 2025-07-11 14:54:10 +02:00
parent 1899e27e21
commit 9a5c861b41
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -23,6 +23,9 @@
#
###########################################################################
use strict;
use warnings;
my %whitelist = (
'https://curl.se/' => 1,
'https://curl.se/changes.html' => 1,
@ -70,6 +73,9 @@ my %whitelist = (
);
my %url;
my %flink;
# list all .md files in the repo
my @files=`git ls-files '**.md'`;
@ -146,7 +152,7 @@ for my $u (sort keys %url) {
my $r = checkurl($u);
if($r) {
for my $f (split(/ /, $url{$l})) {
for my $f (split(/ /, $url{$u})) {
printf "%s ERROR links to missing URL %s\n", $f, $u;
$error++;
}