[PR] dylanaraps/neofetch#2084 from Skaldebane - Fixes #1952

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2084
Thanks to @Skaldebane

Co-authored-by: Hossam Elbadissi <skaldebane@gmail.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-30 18:56:39 -04:00
commit 8262573b0c

View file

@ -4763,11 +4763,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() {