Use mirrors.kernel.org as first mirror

This commit is contained in:
Timothy Redaelli 2018-11-16 17:06:36 +01:00
parent f7c3f0ea49
commit 664dcd02c3

View file

@ -26,6 +26,7 @@ else
fi
get_worldwide_mirrors() {
echo "http://mirrors.kernel.org/archlinux"
_download 'https://www.archlinux.org/mirrorlist/?country=all&protocol=http&protocol=https&ip_version=4' | awk '/^## /{if ($2 == "Worldwide") { flag=1 } else { flag=0 } } /^#Server/ { if (flag) { sub(/\/\$repo.*/, ""); print $3 } }'
}