From 1c715109fd79aca4e9b02ba933a75a4956ede763 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 29 Mar 2016 23:02:23 +1100 Subject: [PATCH] Fixed issues when progress colors weren't set to 'distro' --- neofetch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 68d4e1e0..addddbb1 100755 --- a/neofetch +++ b/neofetch @@ -2337,14 +2337,19 @@ setcolors () { info_color="$(color ${colors[5]})" fi - [ "$progress_color_elapsed" == "distro" ] && \ + if [ "$progress_color_elapsed" == "distro" ]; then progress_color_elapsed="$(color 7)" + else + progress_color_elapsed="$(color $progress_color_elapsed)" + fi if [ "$progress_color_total" == "distro" ]; then progress_color_total="$c1" case "$1" in 7 | 3 | 6) progress_color_total="$c2" ;; esac + else + progress_color_total="$(color $progress_color_total)" fi }