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:
Hossam Elbadissi 2022-03-28 23:23:02 +00:00 committed by GitHub
parent ccd5d9f526
commit 333e04ef45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4715,11 +4715,11 @@ set_text_colors() {
bar_color_elapsed="$(color "$bar_color_elapsed")"
fi
case ${bar_color_total}${1} in
distro[736]) bar_color_total=$(color "$1") ;;
distro[0-9]) bar_color_total=$(color "$2") ;;
*) bar_color_total=$(color "$bar_color_total") ;;
esac
if [[ "$bar_color_total" == "distro" ]]; then
bar_color_total="$(color fg)"
else
bar_color_total="$(color "$bar_color_total")"
fi
}
color() {