Return to basic wait screen
This commit is contained in:
parent
376903c260
commit
9bcf1e6a29
|
@ -47,33 +47,17 @@ function please_wait {
|
||||||
echo -n ''
|
echo -n ''
|
||||||
}
|
}
|
||||||
|
|
||||||
function include_source {
|
|
||||||
source $1
|
|
||||||
}
|
|
||||||
|
|
||||||
please_wait
|
please_wait
|
||||||
|
|
||||||
width=$(tput cols)
|
|
||||||
height=$(tput lines)
|
|
||||||
spin='-\|/'
|
|
||||||
i=0
|
|
||||||
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
|
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
|
||||||
for f in $UTILS_FILES
|
for f in $UTILS_FILES
|
||||||
do
|
do
|
||||||
tput cup $((height * 3 / 5)) $(((width / 2)))
|
|
||||||
echo -n ''
|
|
||||||
i=$(( (i+1) %4 ))
|
|
||||||
printf "\r${spin:$i:1}"
|
|
||||||
source $f
|
source $f
|
||||||
done
|
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
|
do
|
||||||
tput cup $((height * 3 / 5)) $(((width / 2)))
|
|
||||||
echo -n ''
|
|
||||||
i=$(( (i+1) %4 ))
|
|
||||||
printf "\r${spin:$i:1}"
|
|
||||||
source $f
|
source $f
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue