mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
[fix] Message formatting
This commit is contained in:
@@ -157,10 +157,12 @@ wait_for_apt() {
|
|||||||
fi
|
fi
|
||||||
local count=0
|
local count=0
|
||||||
while [[ "$count" -lt "$retry_count" ]]; do
|
while [[ "$count" -lt "$retry_count" ]]; do
|
||||||
|
((count++))
|
||||||
|
echo "Attempting to acquire dpkg lock... (Attempt $count/$retry_count)"
|
||||||
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"
|
||||||
echo "$retry_msg"
|
echo " $retry_msg"
|
||||||
else
|
else
|
||||||
$progress_callback "$retry_msg"
|
$progress_callback "$retry_msg"
|
||||||
fi
|
fi
|
||||||
@@ -169,7 +171,6 @@ wait_for_apt() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
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