General: If something can't be detected let the user know in verbose mode
This commit is contained in:
parent
971616f0c4
commit
5585eaa8b8
1 changed files with 4 additions and 1 deletions
5
neofetch
5
neofetch
|
@ -2309,7 +2309,10 @@ info() {
|
|||
fi
|
||||
|
||||
# If the output is empty, don't print anything
|
||||
[ -z "$output" ] && return
|
||||
if [ -z "$output" ]; then
|
||||
err "Info: Couldn't detect $subtitle"
|
||||
return
|
||||
fi
|
||||
|
||||
# Trim whitespace
|
||||
output="$(trim "$output")"
|
||||
|
|
Loading…
Reference in a new issue