add cancel label

This commit is contained in:
Tobias Powalowski 2023-07-15 08:55:46 +02:00
parent 0192109be7
commit 7f7111d4f8

View file

@ -16,7 +16,7 @@ _select_mirror() {
_NEXTITEM="3"
## Download updated mirrorlist, if possible (only on x86_64)
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
dialog --infobox "Downloading latest mirrorlist..." 3 40
dialog --cancel-label "Back" --infobox "Downloading latest mirrorlist..." 3 40
${_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"