From 9bce1a7f1c7f60513a6cd6da0c9efeff26a1afa5 Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 9 Dec 2016 21:54:42 +0100 Subject: [PATCH] Less code for spinner --- dev/ofunctions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 0be3c65..3f843b0 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -600,8 +600,8 @@ function Spinner { if [ $_LOGGER_SILENT == true ] || [ "$_LOGGER_ERR_ONLY" == true ]; then return 0 else - printf " [%c] " "$_OFUNCTIONS_SPINNER" - printf "\b\b\b\b\b\b" + printf " [%c] \b\b\b\b\b\b" "$_OFUNCTIONS_SPINNER" + #printf "\b\b\b\b\b\b" _OFUNCTIONS_SPINNER=${_OFUNCTIONS_SPINNER#?}${_OFUNCTIONS_SPINNER%%???} return 0 fi