From 68f6524a574595bf8e0398a245402a7d08ea1b4a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 2 Aug 2016 23:50:05 +1000 Subject: [PATCH] Keep old format behaviour --- neofetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neofetch b/neofetch index a20e614e..46cd051c 100755 --- a/neofetch +++ b/neofetch @@ -2530,6 +2530,12 @@ prin () { string="$(printf "%.$((columns - ${padding_num/C} - gap))s" "$string")" fi + # If $2 doesn't exist we format $1 as info + if [ -z "$2" ]; then + subtitle_color="$info_color" + bold= + fi + # Format the output string="${string/:/"\033[0m"${colon_color}:${info_color}}" string="${subtitle_color}${bold}${string}"