From 2a97a54f983f16aaea7d9ef77023d32ddcf8b6c7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 16 Jun 2015 10:31:14 +0200 Subject: setup-apkrepos: fix speed test of mirrors Some mirrors error on double / in path. ref #4365 --- setup-apkrepos.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3