From 02124dfd96423d2cacedfc7e8d7e6d7073242783 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 9 Jan 2023 08:36:30 +0100 Subject: [PATCH] fix _DLPROG --- usr/lib/archboot/installer/base.sh | 1 + usr/lib/archboot/installer/pacman.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/base.sh b/usr/lib/archboot/installer/base.sh index 8c81408a5..4824a1ebe 100644 --- a/usr/lib/archboot/installer/base.sh +++ b/usr/lib/archboot/installer/base.sh @@ -28,6 +28,7 @@ _EDITOR="" # programs _LSBLK="lsblk -rpno" _BLKID="blkid -c /dev/null" +_DLPROG="wget -q" _set_title() { if [[ -e "${_LOCAL_DB}" ]]; then diff --git a/usr/lib/archboot/installer/pacman.sh b/usr/lib/archboot/installer/pacman.sh index a744897f7..af2f2f5a0 100644 --- a/usr/lib/archboot/installer/pacman.sh +++ b/usr/lib/archboot/installer/pacman.sh @@ -24,7 +24,7 @@ _select_mirror() { ## Download updated mirrorlist, if possible (only on x86_64) if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then dialog --infobox "Downloading latest mirrorlist ..." 3 40 - ${DLPROG} -q "https://www.archlinux.org/mirrorlist/?country=all&protocol=http&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" -O /tmp/pacman_mirrorlist.txt + ${_DLPROG} "https://www.archlinux.org/mirrorlist/?country=all&protocol=http&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 mv "${_MIRRORLIST}" "${_MIRRORLIST}.bak" cp /tmp/pacman_mirrorlist.txt "${_MIRRORLIST}"