ignore empty lines in scripts/localmirrors
authorJohn Crispin <john@openwrt.org>
Sun, 3 Jul 2011 19:33:24 +0000 (19:33 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 3 Jul 2011 19:33:24 +0000 (19:33 +0000)
SVN-Revision: 27416

scripts/download.pl

index 08949d698aa49dd375e4dfbc14fb831e27dde61e..7d2c41e0d046605147709f39cbfc0095cf658b10 100755 (executable)
@@ -24,7 +24,7 @@ sub localmirrors {
        open LM, "$scriptdir/localmirrors" and do {
            while (<LM>) {
                        chomp $_;
-                       push @mlist, $_;
+                       push @mlist, $_ if $_;
                }
                close LM;
        };