summaryrefslogtreecommitdiff
path: root/releng/airootfs/usr/local/bin/chaotic-rankmirrors
diff options
context:
space:
mode:
Diffstat (limited to 'releng/airootfs/usr/local/bin/chaotic-rankmirrors')
-rwxr-xr-xreleng/airootfs/usr/local/bin/chaotic-rankmirrors4
1 files changed, 2 insertions, 2 deletions
diff --git a/releng/airootfs/usr/local/bin/chaotic-rankmirrors b/releng/airootfs/usr/local/bin/chaotic-rankmirrors
index 931d923..43273c2 100755
--- a/releng/airootfs/usr/local/bin/chaotic-rankmirrors
+++ b/releng/airootfs/usr/local/bin/chaotic-rankmirrors
@@ -18,7 +18,7 @@ echo "==> Ranking Chaotic-AUR mirrors..."
for m in "${MIRRORS[@]}"; do
url="https://${m}.chaotic.cx/${TEST_PATH}"
- t=$(curl -o /dev/null -s -w "%{time_starttransfer}" \
+ t=$(curl -f -o /dev/null -s -w "%{time_starttransfer}" \
--max-time "$TIMEOUT" --connect-timeout 3 \
-r 0-1023 "$url" 2>/dev/null)
rc=$?
@@ -36,7 +36,7 @@ if [ ! -s "$tmp" ]; then
exit 0
fi
-sorted=$(sort -n "$tmp")
+sorted=$(LC_ALL=C sort -n "$tmp")
rm -f "$tmp"
cp "$MIRRORLIST" "${MIRRORLIST}.bak" 2>/dev/null || true