Commit 2a97a54f authored by Natanael Copa's avatar Natanael Copa

setup-apkrepos: fix speed test of mirrors

Some mirrors error on double / in path.

ref #4365
parent 3c87e9c0
...@@ -48,7 +48,7 @@ find_fastest_mirror() { ...@@ -48,7 +48,7 @@ find_fastest_mirror() {
local url= local url=
for url in $MIRRORS; do for url in $MIRRORS; do
local time=$(time_cmd apk update --quiet $apk_root_opt \ local time=$(time_cmd apk update --quiet $apk_root_opt \
--repository $url/edge/main \ --repository ${url%/}/edge/main \
--repositories-file /dev/null) --repositories-file /dev/null)
if [ -n "$time" ]; then if [ -n "$time" ]; then
echo "$time $url" echo "$time $url"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment