From 56681dc5b0060a2565be670983c93e95c7317b12 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 2 Aug 2023 08:15:45 +0200 Subject: [PATCH] add progressbar download --- usr/bin/archboot-pacsetup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-pacsetup.sh b/usr/bin/archboot-pacsetup.sh index 3af4a1552..843c4215b 100755 --- a/usr/bin/archboot-pacsetup.sh +++ b/usr/bin/archboot-pacsetup.sh @@ -11,9 +11,9 @@ _select_mirror() { _DOWNLOAD="Downloading latest mirrorlist for Region ${_COUNTRY}..." ${_DLPROG} "https://www.archlinux.org/mirrorlist/?country=${_COUNTRY}&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" -O /tmp/pacman_mirrorlist.txt (sleep 1 - progress "50" "${_DOWNLOAD}" + _progress "50" "${_DOWNLOAD}" sleep 1 - progress "100" "${_DOWNLOAD}" + _progress "100" "${_DOWNLOAD}" sleep 2) | _dialog --title "Logging to ${_LOG}" --no-mouse --gauge "${_DOWNLOAD}" 6 70 0 if grep -q '#Server = https:' /tmp/pacman_mirrorlist.txt; then mv "${_MIRRORLIST}" "${_MIRRORLIST}.bak"