Avoid flicker
This commit is contained in:
parent
617e8f940d
commit
8f17ca8b53
|
@ -65,20 +65,10 @@ done
|
|||
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
|
||||
file_ctr=0
|
||||
echo "0" | dialog --gauge $"Please wait" 7 70 0
|
||||
for f in $UTILS_FILES
|
||||
do
|
||||
echo "$((file_ctr * 100 / max_files))" | dialog --gauge $"Please wait" 7 70 0
|
||||
source $f
|
||||
file_ctr=$((file_ctr + 1))
|
||||
done
|
||||
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
|
||||
|
||||
APP_FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
|
||||
for f in $APP_FILES
|
||||
do
|
||||
echo "$((file_ctr * 100 / max_files))" | dialog --gauge $"Please wait" 7 70 0
|
||||
source $f
|
||||
file_ctr=$((file_ctr + 1))
|
||||
done
|
||||
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
|
||||
echo "100" | dialog --gauge $"Please wait" 7 70 0
|
||||
|
||||
COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
|
||||
|
|
Loading…
Reference in New Issue