aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-16 10:31:14 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-16 10:36:35 +0200
commit2a97a54f983f16aaea7d9ef77023d32ddcf8b6c7 (patch)
tree02d949a8c86190a78fdb5749de4f1afd60c72c42
parent3c87e9c0ebb3402de9386c9c85ff6ba99a362c8e (diff)
downloadalpine-conf-2a97a54f983f16aaea7d9ef77023d32ddcf8b6c7.tar.bz2
alpine-conf-2a97a54f983f16aaea7d9ef77023d32ddcf8b6c7.tar.xz
setup-apkrepos: fix speed test of mirrors
Some mirrors error on double / in path. ref #4365
-rw-r--r--setup-apkrepos.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index 1956b19..1bbccca 100644
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -48,7 +48,7 @@ find_fastest_mirror() {
local url=
for url in $MIRRORS; do
local time=$(time_cmd apk update --quiet $apk_root_opt \
- --repository $url/edge/main \
+ --repository ${url%/}/edge/main \
--repositories-file /dev/null)
if [ -n "$time" ]; then
echo "$time $url"