diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-16 10:31:14 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-16 10:36:35 +0200 |
commit | 2a97a54f983f16aaea7d9ef77023d32ddcf8b6c7 (patch) | |
tree | 02d949a8c86190a78fdb5749de4f1afd60c72c42 /setup-apkrepos.in | |
parent | 3c87e9c0ebb3402de9386c9c85ff6ba99a362c8e (diff) | |
download | alpine-conf-2a97a54f983f16aaea7d9ef77023d32ddcf8b6c7.zip |
setup-apkrepos: fix speed test of mirrors
Some mirrors error on double / in path.
ref #4365
Diffstat (limited to 'setup-apkrepos.in')
-rw-r--r-- | setup-apkrepos.in | 2 |
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" |