2
0
mirror of https://github.com/deajan/osync synced 2024-11-17 09:25:42 +00:00

Less code for spinner

This commit is contained in:
deajan 2016-12-09 21:54:42 +01:00
parent 4308678cc2
commit 9bce1a7f1c

View File

@ -600,8 +600,8 @@ function Spinner {
if [ $_LOGGER_SILENT == true ] || [ "$_LOGGER_ERR_ONLY" == true ]; then if [ $_LOGGER_SILENT == true ] || [ "$_LOGGER_ERR_ONLY" == true ]; then
return 0 return 0
else else
printf " [%c] " "$_OFUNCTIONS_SPINNER" printf " [%c] \b\b\b\b\b\b" "$_OFUNCTIONS_SPINNER"
printf "\b\b\b\b\b\b" #printf "\b\b\b\b\b\b"
_OFUNCTIONS_SPINNER=${_OFUNCTIONS_SPINNER#?}${_OFUNCTIONS_SPINNER%%???} _OFUNCTIONS_SPINNER=${_OFUNCTIONS_SPINNER#?}${_OFUNCTIONS_SPINNER%%???}
return 0 return 0
fi fi