From 29846870182b3691031aa1682076699c63fe2895 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 25 Mar 2016 22:17:54 +1100 Subject: [PATCH] Only print cpu cores if they're found --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 7bf50fef..7704c94e 100755 --- a/neofetch +++ b/neofetch @@ -923,7 +923,7 @@ getcpu () { cpu=${cpu// with Radeon HD Graphics} # Add cpu cores to output - [ "$cpu_cores" == "on" ] && \ + [ "$cpu_cores" == "on" ] && [ ! -z "$cores" ] && \ cpu=${cpu/@/\(${cores}\) @} # Make the output of cpu shorter