download-from-binary-cache: strip trailing / from URLs
This commit is contained in:
parent
d694c599e2
commit
2a8e5c8b11
|
@ -7,7 +7,7 @@ use Nix::Store;
|
|||
use DBI;
|
||||
|
||||
|
||||
my @binaryCacheUrls = split / /, ($ENV{"NIX_BINARY_CACHES"} || "");
|
||||
my @binaryCacheUrls = map { s/\/+$//; $_ } split(/ /, ($ENV{"NIX_BINARY_CACHES"} || ""));
|
||||
|
||||
my ($dbh, $insertNAR, $queryNAR);
|
||||
my %cacheIds;
|
||||
|
|
Loading…
Reference in a new issue