Don't forget last element
authorAlexander Wirt <formorer@debian.org>
Tue, 3 Jan 2012 22:11:12 +0000 (23:11 +0100)
committerAlexander Wirt <formorer@debian.org>
Tue, 3 Jan 2012 22:11:12 +0000 (23:11 +0100)
masterlist2mirmon

index 60a08f3..0195492 100755 (executable)
@@ -25,6 +25,8 @@ while (my $line = <$fh>) {
     }
 }
 
+push @mirrors, $data if $data;
+
 foreach my $mirror (@mirrors) {
     my ($c, $r) = split (/ +/, $mirror->{'country'});
     printf ("%s http://%s%s\n", $c, $mirror->{'site'}, $mirror->{'grml-http'});