From d5e35803d646e0f4eead6999c565ae9ff7d23ae7 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 9 Jan 2017 18:50:28 +0700 Subject: [PATCH] CPU (Cores): Strip spaces --- neofetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neofetch b/neofetch index 2b580734..281d26f2 100755 --- a/neofetch +++ b/neofetch @@ -971,6 +971,9 @@ get_cpu() { cpu="${cpu//, altivec supported}" cpu="${cpu//FPU*}" + # Trim spaces from core output + cores="${cores//[[:space:]]}" + # Add CPU cores to the output. [[ "$cpu_cores" != "off" && "$cores" ]] && \ cpu="${cpu/@/(${cores}) @}"