From 7fbe91e8e890e67726c4159178a723750206236d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 4 Nov 2016 20:09:27 +1100 Subject: [PATCH] General: Fix issue with no info printed if whitespace was in the output --- neofetch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 56a03667..13b05887 100755 --- a/neofetch +++ b/neofetch @@ -2308,15 +2308,15 @@ info() { eval output="\$${2}" fi + # Trim whitespace + output="$(trim "$output")" + # If the output is empty, don't print anything if [ -z "$output" ]; then err "Info: Couldn't detect $subtitle" return fi - # Trim whitespace - output="$(trim "$output")" - case "$1" in title) string="${title_color}${bold}${output}" @@ -2637,7 +2637,7 @@ bold() { # Linebreak {{{ getlinebreak() { - linebreak=" " + linebreak="​ " # Calculate info height info_height="$((info_height+=1))"