diff --git a/fastestmirror.sh b/fastestmirror.sh new file mode 100644 index 0000000..b760b9e --- /dev/null +++ b/fastestmirror.sh @@ -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