Fixes #1952
This pull request replaces the old broken code (see #1952) with a simpler, working one for `bar_color_total`, just like `bar_color_elapsed`. Let me know if the old code was done that way for a specific purpose.
This commit is contained in:
@@ -4715,11 +4715,11 @@ set_text_colors() {
|
|||||||
bar_color_elapsed="$(color "$bar_color_elapsed")"
|
bar_color_elapsed="$(color "$bar_color_elapsed")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case ${bar_color_total}${1} in
|
if [[ "$bar_color_total" == "distro" ]]; then
|
||||||
distro[736]) bar_color_total=$(color "$1") ;;
|
bar_color_total="$(color fg)"
|
||||||
distro[0-9]) bar_color_total=$(color "$2") ;;
|
else
|
||||||
*) bar_color_total=$(color "$bar_color_total") ;;
|
bar_color_total="$(color "$bar_color_total")"
|
||||||
esac
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
color() {
|
color() {
|
||||||
|
|||||||
Reference in New Issue
Block a user