Avoid flicker

This commit is contained in:
Bob Mottram 2017-06-11 20:48:50 +01:00
parent 617e8f940d
commit 8f17ca8b53
1 changed files with 2 additions and 12 deletions

View File

@ -65,20 +65,10 @@ done
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-* UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
file_ctr=0 file_ctr=0
echo "0" | dialog --gauge $"Please wait" 7 70 0 echo "0" | dialog --gauge $"Please wait" 7 70 0
for f in $UTILS_FILES for f in $UTILS_FILES; do echo "$((file_ctr * 100 / max_files))"; source $f; file_ctr=$((file_ctr + 1)); done | dialog --gauge $"Please wait" 7 70 0
do
echo "$((file_ctr * 100 / max_files))" | dialog --gauge $"Please wait" 7 70 0
source $f
file_ctr=$((file_ctr + 1))
done
APP_FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-* APP_FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
for f in $APP_FILES for f in $APP_FILES; do echo "$((file_ctr * 100 / max_files))"; source $f; file_ctr=$((file_ctr + 1)); done | dialog --gauge $"Please wait" 7 70 0
do
echo "$((file_ctr * 100 / max_files))" | dialog --gauge $"Please wait" 7 70 0
source $f
file_ctr=$((file_ctr + 1))
done
echo "100" | dialog --gauge $"Please wait" 7 70 0 echo "100" | dialog --gauge $"Please wait" 7 70 0
COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt