From 78234c8bb61fbdb78883cb52a282318601a88dfc Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Thu, 5 Aug 2021 17:33:14 +0200 Subject: [PATCH] Use mirror.pkgbuild.com as first mirror and use only https mirrors --- vps2arch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vps2arch b/vps2arch index 844f953..1f2f224 100755 --- a/vps2arch +++ b/vps2arch @@ -26,7 +26,8 @@ else fi get_worldwide_mirrors() { - _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 } }' + echo "https://mirror.pkgbuild.com" + _download 'https://www.archlinux.org/mirrorlist/?country=all&protocol=https&ip_version=4' | awk '/^## /{if ($2 == "Worldwide") { flag=1 } else { flag=0 } } /^#Server/ { if (flag) { sub(/\/\$repo.*/, ""); print $3 } }' } cpu_type=$(uname -m)