add progressbar for full system

This commit is contained in:
Tobias Powalowski 2023-08-01 12:32:36 +02:00
parent 18aca5cbff
commit d9ff184147

View file

@ -485,7 +485,7 @@ _full_system() {
for i in ${_PACKAGES}; do
pacman -S --noconfirm ${i} >"${_LOG}" 2>&1 || exit 1
if [[ "$((${_COUNT}*100/${_PACKAGE_COUNT}-4))" -gt 1 ]]; then
progress "$((${_COUNT}*100/${_PACKAGE_COUNT}-4))" "${_KEEP} Reinstalling all packages..."
_progress "$((${_COUNT}*100/${_PACKAGE_COUNT}-4))" "${_KEEP} Reinstalling all packages..."
fi
_COUNT="$((${_COUNT}+1))"
done