mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
mk-ca-bundle.pl: die if no certs have been processed (currently happening due to mozilla website maintenance)
This commit is contained in:
parent
5aa18ce2f9
commit
a93e4cc4e4
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue