Added utility script to sort mirrors by speed
This commit is contained in:
parent
11935ab4e1
commit
0f1b8e63bc
12
fastestmirror.sh
Normal file
12
fastestmirror.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user