mk-ca-bundle.pl: die if no certs have been processed (currently happening due...

mk-ca-bundle.pl: die if no certs have been processed (currently happening due to mozilla website maintenance)
parent ab5a1512
......@@ -222,6 +222,11 @@ while (<TXT>) {
}
close(TXT) or die "Couldn't close $txt: $!\n";
close(CRT) or die "Couldn't close $crt.~: $!\n";
# this may happen if website is in maintenance - 200 OK is returned but it returns
# a HTML maintenance page instead of expected file
die "No certs processed (invalid input file?)!" if ($certnum == 0 and $skipnum == 0);
unless( $stdout ) {
if ($opt_b && -e $crt) {
my $bk = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment