Fix progress bars

This commit is contained in:
Dylan 2016-03-29 22:36:40 +11:00
parent bfac607589
commit 9d20bb67cd

View file

@ -2461,8 +2461,8 @@ bar() {
total=$(printf %"$((progress_length - elapsed))"s)
# Set the colors and swap the spaces for $progress_char
bar="${progress_color_elapsed}${prog// /$progress_char}"
bar+="${progress_color_total}${total// /$progress_char}"
bar="\033[0m${progress_color_elapsed}${prog// /$progress_char}"
bar+="\033[0m${progress_color_total}${total// /$progress_char}"
printf "%b%s\n" "${bar}${clear}"
}