mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-25 12:55:00 +00:00
General: Fix issue with no info printed if whitespace was in the output
This commit is contained in:
8
neofetch
8
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))"
|
||||
|
||||
Reference in New Issue
Block a user