mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-12 04:02:50 +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"
|
local old_text="$progress_bar_text"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
local count=0
|
||||||
while [[ "$retry_count" -lt "$retry_count" ]]; do
|
while [[ "$count" -lt "$retry_count" ]]; do
|
||||||
if __check_apt_lock; then
|
if __check_apt_lock; then
|
||||||
if [ -z "$progress_callback" ]; then
|
if [ -z "$progress_callback" ]; then
|
||||||
echo "$lock_msg"
|
echo "$lock_msg"
|
||||||
@@ -168,8 +168,8 @@ wait_for_apt() {
|
|||||||
$progress_callback "$old_text"
|
$progress_callback "$old_text"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
((retry_count++))
|
|
||||||
sleep "$retry_timeout"
|
sleep "$retry_timeout"
|
||||||
|
((count++))
|
||||||
done
|
done
|
||||||
|
|
||||||
if __check_apt_lock; then
|
if __check_apt_lock; then
|
||||||
|
|||||||
Reference in New Issue
Block a user