download-from-binary-cache.pl: Get rid of an uninitialized value warning
Reported by Pablo Costa.
This commit is contained in:
parent
31a551a60f
commit
a4cb62ac25
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ sub getAvailableCaches {
|
|||
}
|
||||
}
|
||||
|
||||
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-extra-binary-caches"};
|
||||
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-extra-binary-caches"} // "";
|
||||
foreach my $url (@untrustedUrls) {
|
||||
next unless scalar(grep { $url eq $_ } @trustedUrls) > 0;
|
||||
push @urls, $url;
|
||||
|
|
Loading…
Reference in a new issue