mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 19:52:51 +01:00
[fix] Don't use same variable for increment and limit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user