update spinner_loading (#1973)
This commit is contained in:
Родитель
14eeebc89a
Коммит
101eab86fe
13
lib.sh
13
lib.sh
|
@ -1223,15 +1223,12 @@ version_gt() {
|
|||
}
|
||||
|
||||
spinner_loading() {
|
||||
pid=$!
|
||||
spin='-\|/'
|
||||
i=0
|
||||
while kill -0 $pid 2>/dev/null
|
||||
do
|
||||
i=$(( (i+1) %4 ))
|
||||
printf "\r[${spin:$i:1}] " # Add text here, something like "Please be patient..." maybe?
|
||||
sleep .1
|
||||
printf '['
|
||||
while ps "$!" > /dev/null; do
|
||||
echo -n '⣾⣽⣻'
|
||||
sleep '.7'
|
||||
done
|
||||
echo ']'
|
||||
}
|
||||
|
||||
any_key() {
|
||||
|
|
|
@ -28,7 +28,6 @@ connection and the local lib isn't available. Hence you cannot run this script."
|
|||
fi
|
||||
elif ! [ -f /var/scripts/nextcloud-startup-script.sh ]
|
||||
then
|
||||
print_text_in_color "$ICyan" "Updating lib..."
|
||||
curl -sfL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh -o /var/scripts/lib.sh
|
||||
fi
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче