[fix] Message formatting

This commit is contained in:
William Wernert
2020-12-28 14:06:33 -05:00
parent 17160dcdbe
commit f7a60a011b

View File

@@ -157,10 +157,12 @@ wait_for_apt() {
fi
local count=0
while [[ "$count" -lt "$retry_count" ]]; do
((count++))
echo "Attempting to acquire dpkg lock... (Attempt $count/$retry_count)"
if __check_apt_lock; then
if [[ -z $progress_callback ]]; then
echo "$lock_msg"
echo "$retry_msg"
echo " $lock_msg"
echo " $retry_msg"
else
$progress_callback "$retry_msg"
fi
@@ -169,7 +171,6 @@ wait_for_apt() {
return 0
fi
sleep "$retry_timeout"
((count++))
done
if __check_apt_lock; then