Added utility script to sort mirrors by speed

This commit is contained in:
datalore 2024-07-27 19:07:07 +02:00
parent 11935ab4e1
commit 0f1b8e63bc

12
fastestmirror.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
data=""
for s in $(wget -qO- https://mirrors.alpinelinux.org/mirrors.txt); do
t=$(time -f "%E" wget -q $s/MIRRORS.txt -O /dev/null 2>&1)
echo "$s was $t"
data="$data$t $s\n"
done
echo "===RESULTS==="
echo -e $data | sort