- remove the debug tracing leftovers from
d9d2e339ced3fa02 that made exit
unconditonally
Closes #19914
my %url;
my %flink;
+my $dry;
+if(defined $ARGV[0] && $ARGV[0] eq "--dry-run") {
+ $dry = 1;
+ shift @ARGV;
+}
+
# list all files to scan for links
my @files=`git ls-files docs include lib scripts src`;
}
}
-for my $u (sort keys %url) {
- print "$u\n";
+if($dry) {
+ for my $u (sort keys %url) {
+ print "$u\n";
+ }
+ exit;
}
-exit;
my $error;
my @errlist;