Skip to content

Commit

Permalink
[PR] dylanaraps/neofetch#2084 from Skaldebane - Fixes #1952
Browse files Browse the repository at this point in the history
Upstream PR: dylanaraps/neofetch#2084
Thanks to @Skaldebane

Co-authored-by: Hossam Elbadissi <[email protected]>
  • Loading branch information
hykilpikonna and Skaldebane committed Jul 30, 2022
2 parents 9c2e731 + 333e04e commit 8262573
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8262573

Please sign in to comment.