fix _DLPROG

This commit is contained in:
Tobias Powalowski 2023-01-09 08:36:30 +01:00
parent 0232a1ac6c
commit 02124dfd96
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ _EDITOR=""
# programs
_LSBLK="lsblk -rpno"
_BLKID="blkid -c /dev/null"
_DLPROG="wget -q"
_set_title() {
if [[ -e "${_LOCAL_DB}" ]]; then

View file

@ -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}"