From afcb210aaa131a6d963dac5214e14ad5325c8c79 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 6 Dec 2016 12:03:09 +1100 Subject: [PATCH] General: Quote string --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 4e4bae80..e3a4d35c 100755 --- a/neofetch +++ b/neofetch @@ -757,7 +757,7 @@ get_cpu() { # Show/hide hyperthreaded cores case "$cpu_cores" in - "logical" | "on") cores="$(grep -c ^processor /proc/cpuinfo)" ;; + "logical" | "on") cores="$(grep -c "^processor" /proc/cpuinfo)" ;; "physical") cores="$(grep "^core id" /proc/cpuinfo | sort -u | wc -l)" ;; esac ;;