diff options
Diffstat (limited to 'scripts/download-from-binary-cache.pl.in')
-rw-r--r-- | scripts/download-from-binary-cache.pl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in index d073f5bfdcbe..3303199dacd2 100644 --- a/scripts/download-from-binary-cache.pl.in +++ b/scripts/download-from-binary-cache.pl.in @@ -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; |