From fccc78c6270589387b8430bf5c132c80a65e5950 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Jun 2017 22:10:12 +0100 Subject: [PATCH] Different way of doing progress bars --- src/freedombone-controlpanel | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 8c5ea68e..afe9adae 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -69,11 +69,29 @@ done UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-* file_ctr=0 -for f in $UTILS_FILES; do echo "$((file_ctr * 100 / utils_files))"; include_source $f; file_ctr=$((file_ctr + 1)); done | dialog --gauge $"Loading utilities" 7 70 0 +dialog --title "$PROJECT_NAME" --gauge "Loading utils..." 7 75 < <( + for f in $UTILS_FILES + do + echo "$((file_ctr * 100 / utils_files))"; +cat <