mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix _DLPROG
This commit is contained in:
parent
0232a1ac6c
commit
02124dfd96
2 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ _EDITOR=""
|
|||
# programs
|
||||
_LSBLK="lsblk -rpno"
|
||||
_BLKID="blkid -c /dev/null"
|
||||
_DLPROG="wget -q"
|
||||
|
||||
_set_title() {
|
||||
if [[ -e "${_LOCAL_DB}" ]]; then
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue