diff options
author | Daniel Hansson <github@hanssonit.se> | 2021-05-20 21:44:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 21:44:09 +0300 |
commit | 101eab86fe3c5d01abb5f9a841562fc8d1e64a7c (patch) | |
tree | 09ad8ca1c0149fad06af9cd17e0f2eb0a04ebc14 | |
parent | 14eeebc89a1f8ed066f001d6b845420fca2310f1 (diff) |
update spinner_loading (#1973)
-rw-r--r-- | lib.sh | 13 | ||||
-rw-r--r-- | static/fetch_lib.sh | 1 |
2 files changed, 5 insertions, 9 deletions
@@ -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 |