From 735877d03fdb60b18e21497953c78b56d198e938 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 21 Jul 2023 21:48:14 +0200 Subject: [PATCH] only show https mirrors --- usr/bin/archboot-pacsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/archboot-pacsetup.sh b/usr/bin/archboot-pacsetup.sh index 0d30302f0..9d4db9e25 100755 --- a/usr/bin/archboot-pacsetup.sh +++ b/usr/bin/archboot-pacsetup.sh @@ -9,7 +9,7 @@ _select_mirror() { if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then _dialog --infobox "Downloading latest mirrorlist..." 3 40 ${_DLPROG} "https://www.archlinux.org/mirrorlist/?country=$(curl -s http://ip-api.com/csv/?fields=countryCode)&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" -O /tmp/pacman_mirrorlist.txt - if grep -q '#Server = http:' /tmp/pacman_mirrorlist.txt; then + if grep -q '#Server = https:' /tmp/pacman_mirrorlist.txt; then mv "${_MIRRORLIST}" "${_MIRRORLIST}.bak" cp /tmp/pacman_mirrorlist.txt "${_MIRRORLIST}" fi