diff options
| author | Nippy <nippy@Beller-Mac-mini.lan> | 2026-11-06 20:57:12 +0100 |
|---|---|---|
| committer | Nippy <nippy@Beller-Mac-mini.lan> | 2026-11-06 20:57:12 +0100 |
| commit | 3d4d28b63a8338d8f84c3d5bd41d3fdb751ac71e (patch) | |
| tree | 5a2e901f8a74ebe160190de3bb483bcb3c946e9f /releng/airootfs/usr/local/bin/chaotic-rankmirrors | |
| parent | a0c3322a1d9ef920e518a8899dc9dbb3c1216815 (diff) | |
| download | RaveOS-build-iso-3d4d28b63a8338d8f84c3d5bd41d3fdb751ac71e.tar.gz RaveOS-build-iso-3d4d28b63a8338d8f84c3d5bd41d3fdb751ac71e.zip | |
fixing
Diffstat (limited to 'releng/airootfs/usr/local/bin/chaotic-rankmirrors')
| -rwxr-xr-x | releng/airootfs/usr/local/bin/chaotic-rankmirrors | 4 |
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 |