From 6c5b557623b00082d4c15a251eebb90c633f4bfc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Dec 2016 10:28:52 +1100 Subject: [PATCH] General: Simplify test --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index f378ef55..0d440b88 100755 --- a/neofetch +++ b/neofetch @@ -2432,7 +2432,7 @@ info() { "get_${2:-$1}" 2>/dev/null # If the get_func function called 'prin' directly, stop here. - (( "$prin" == 1 )) && return + [[ "$prin" ]] && return # Update the variable output="$(trim "${!2:-${!1}}")"