Browse Source

Add a check for empty mirrors_list.txt

master
Boian Bonev 8 months ago
committed by Ralph Ronnquist
parent
commit
2d896b14e2
  1. 1
      generate-rr.pl

1
generate-rr.pl

@ -29,6 +29,7 @@ my $data = $resp->content();
my $mirror_file = "$LOC/mirror_list.txt";
my $mirror_file_work = $mirror_file . ".work";
die "Got an empty $URL...\n" if $data eq "";
die "No changes in mirrors, nothing to do...\n" if load_file( $mirror_file ) eq $data;
save_file( $mirror_file_work, $data ) or die "Cannot save work file $mirror_file_work\n";

Loading…
Cancel
Save