From 9c5dbcdfd61b399a414b42e5802d133a93bf96cf Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 20 Jul 2017 19:38:56 +0700 Subject: [PATCH] CPU: Strip spaces from speed output --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 6ef60e80..e81a65ab 100755 --- a/neofetch +++ b/neofetch @@ -1038,8 +1038,9 @@ get_cpu() { cpu="${cpu//Chip Revision*}" cpu="${cpu//Technologies, Inc}" - # Trim spaces from core output + # Trim spaces from core and speed output cores="${cores//[[:space:]]}" + speed="${speed//[[:space:]]}" # Remove CPU brand from the output. if [[ "$cpu_brand" == "off" ]]; then