[fix] Don't use same variable for increment and limit

This commit is contained in:
William Wernert
2020-12-28 13:55:03 -05:00
parent 4d1cb37468
commit 7050b1fce5

View File

@@ -155,8 +155,8 @@ wait_for_apt() {
local old_text="$progress_bar_text"
fi
fi
while [[ "$retry_count" -lt "$retry_count" ]]; do
local count=0
while [[ "$count" -lt "$retry_count" ]]; do
if __check_apt_lock; then
if [ -z "$progress_callback" ]; then
echo "$lock_msg"
@@ -168,8 +168,8 @@ wait_for_apt() {
$progress_callback "$old_text"
return 0
fi
((retry_count++))
sleep "$retry_timeout"
((count++))
done
if __check_apt_lock; then