fix download.pl (#1257)
authorFelix Fietkau <nbd@openwrt.org>
Thu, 25 Jan 2007 13:58:52 +0000 (13:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 25 Jan 2007 13:58:52 +0000 (13:58 +0000)
SVN-Revision: 6200

scripts/download.pl

index 51340097d8c97819229bda1c112ffe9251a131ae..280e5f0d732625f6f69a18d318271943bb08df11 100755 (executable)
@@ -23,7 +23,7 @@ my $ok;
 sub localmirrors {
 
     my @mlist;
 sub localmirrors {
 
     my @mlist;
-    open LM, "$scriptdir/localmirrors" or return "";
+    open LM, "$scriptdir/localmirrors" or return ();
     while (<LM>) {
         chomp $_;
         push @mlist, $_;
     while (<LM>) {
         chomp $_;
         push @mlist, $_;