reset progress bar on reaching end

This commit is contained in:
Tobias Powalowski 2024-07-07 10:39:44 +02:00
parent 8a918dcc7c
commit 44d30e1aa4

View file

@ -34,7 +34,7 @@ _progress_wait() {
_progress "${_COUNT}" "${3}"
fi
if [[ "${_COUNT}" -gt "${2}" ]]; then
_progress "${2}" "${3}"
_COUNT="${1}"
fi
_COUNT="$((_COUNT+1))"
sleep "${4}"