Skip to content

Commit

Permalink
Fix spinner in ASCII mode
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Dec 18, 2022
1 parent 59f13f7 commit a24a2df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ spinner () {
local ASCII_PROPELLER="/ - \\ |"

# Bigger spinners and progress type bars; takes more space.
local WIDE_ASCII_PROG="[>----] [=>---] [==>--] [===>-] [====>] [----<] [---<=] [--<==] [-<===] [<====]"
local WIDE_ASCII_PROG="[>---] [=>--] [==>-] [===>] [---<] [--<=] [-<==] [<===]"
local WIDE_UNI_GREYSCALE2="▒▒▒ █▒▒ ██▒ ███ ▒██ ▒▒█ ▒▒▒"

local SPINNER_NORMAL
Expand Down Expand Up @@ -372,7 +372,7 @@ run_ok () {
return 0
else
printf "Failed with error: ${res}\\n" >> ${RUN_LOG}
env printf "${REDBG}[ERROR]${NORMAL}\\n"
env printf "${REDBG}[ ER ]${NORMAL}\\n"
if [ "$RUN_ERRORS_FATAL" ]; then
log_fatal "Something went wrong with the previous command. Exiting."
exit 1
Expand Down

0 comments on commit a24a2df

Please sign in to comment.