summaryrefslogtreecommitdiff
path: root/releng/airootfs/usr/local/bin/chaotic-rankmirrors
diff options
context:
space:
mode:
authorNippy <nippy@Beller-Mac-mini.lan>2026-11-06 20:57:12 +0100
committerNippy <nippy@Beller-Mac-mini.lan>2026-11-06 20:57:12 +0100
commit3d4d28b63a8338d8f84c3d5bd41d3fdb751ac71e (patch)
tree5a2e901f8a74ebe160190de3bb483bcb3c946e9f /releng/airootfs/usr/local/bin/chaotic-rankmirrors
parenta0c3322a1d9ef920e518a8899dc9dbb3c1216815 (diff)
downloadRaveOS-build-iso-3d4d28b63a8338d8f84c3d5bd41d3fdb751ac71e.tar.gz
RaveOS-build-iso-3d4d28b63a8338d8f84c3d5bd41d3fdb751ac71e.zip
fixing
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