[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:
commit
8262573b0c
1 changed files with 5 additions and 5 deletions
10
neofetch
10
neofetch
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue