mirror of https://github.com/hak5/openwrt.git
scripts/download.pl: add support for adding mirrors through an environment variable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43654lede-17.01
parent
5472898c0c
commit
3d640eccc1
|
@ -40,6 +40,9 @@ sub localmirrors {
|
|||
close CONFIG;
|
||||
};
|
||||
|
||||
my $mirror = $ENV{'DOWNLOAD_MIRROR'};
|
||||
$mirror and push @mlist, split(/;/, $mirror);
|
||||
|
||||
return @mlist;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue