diff --git a/lib/sde-download/mirror-test.sh b/lib/sde-download/mirror-test.sh index dee39d9..f0c640d 100644 --- a/lib/sde-download/mirror-test.sh +++ b/lib/sde-download/mirror-test.sh @@ -47,7 +47,7 @@ while read name country admin url ; do # test echo -n "Testing <$name> ($country) ..." 1>&2 - speed=$(curl -s -m 20 "$url/DOWNTEST" -w "%{http_code} %{speed_download}" -o /dev/null | + speed=$(curl -Ls -m 20 "$url/DOWNTEST" -w "%{http_code} %{speed_download}" -o /dev/null | grep '^200 ' | cut -d' ' -f2- | sed -e 's:,:.:' -e 's:[\.,]...$::') # compare if [ "${speed:-0}" = "0" ]; then