mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-19 21:41:18 +01:00
scripts/download.pl: add support for adding mirrors through an environment variable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43654
This commit is contained in:
parent
5472898c0c
commit
3d640eccc1
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ sub localmirrors {
|
|||
close CONFIG;
|
||||
};
|
||||
|
||||
my $mirror = $ENV{'DOWNLOAD_MIRROR'};
|
||||
$mirror and push @mlist, split(/;/, $mirror);
|
||||
|
||||
return @mlist;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue