Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2021-05-20 21:44:09 +0300
committerGitHub <noreply@github.com>2021-05-20 21:44:09 +0300
commit101eab86fe3c5d01abb5f9a841562fc8d1e64a7c (patch)
tree09ad8ca1c0149fad06af9cd17e0f2eb0a04ebc14
parent14eeebc89a1f8ed066f001d6b845420fca2310f1 (diff)
update spinner_loading (#1973)
-rw-r--r--lib.sh13
-rw-r--r--static/fetch_lib.sh1
2 files changed, 5 insertions, 9 deletions
diff --git a/lib.sh b/lib.sh
index e4055381..ca236816 100644
--- a/lib.sh
+++ b/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() {
diff --git a/static/fetch_lib.sh b/static/fetch_lib.sh
index b5094d58..f4cf0f1d 100644
--- a/static/fetch_lib.sh
+++ b/static/fetch_lib.sh
@@ -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