Skip to content

Commit 8262573

Browse files
[PR] dylanaraps/neofetch#2084 from Skaldebane - Fixes #1952
Upstream PR: dylanaraps/neofetch#2084 Thanks to @Skaldebane Co-authored-by: Hossam Elbadissi <skaldebane@gmail.com>
2 parents 9c2e731 + 333e04e commit 8262573

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

neofetch

+5-5
Original file line numberDiff line numberDiff line change
@@ -4763,11 +4763,11 @@ set_text_colors() {
47634763
bar_color_elapsed="$(color "$bar_color_elapsed")"
47644764
fi
47654765

4766-
case ${bar_color_total}${1} in
4767-
distro[736]) bar_color_total=$(color "$1") ;;
4768-
distro[0-9]) bar_color_total=$(color "$2") ;;
4769-
*) bar_color_total=$(color "$bar_color_total") ;;
4770-
esac
4766+
if [[ "$bar_color_total" == "distro" ]]; then
4767+
bar_color_total="$(color fg)"
4768+
else
4769+
bar_color_total="$(color "$bar_color_total")"
4770+
fi
47714771
}
47724772

47734773
color() {

0 commit comments

Comments
 (0)