[fix] Message formatting changes

This commit is contained in:
William Wernert
2020-12-28 14:18:43 -05:00
parent a0533dd6b5
commit 5bd15b91ea

View File

@@ -146,8 +146,8 @@ wait_for_apt() {
local retry_count=30
local retry_timeout='10s'
local lock_msg='Could not acquire lock.'
local retry_msg="Waiting $retry_timeout for lock to release."
local lock_msg='Could not acquire lock'
local retry_msg="waiting $retry_timeout for lock to release."
if [ -z "$progress_callback" ]; then
if [ -z "$progress_bar_text" ]; then
local old_text="Installing..."
@@ -161,8 +161,7 @@ wait_for_apt() {
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, $retry_msg"
else
$progress_callback "$retry_msg"
fi