From 60d3aa3f10f8f17ef25d2adab91cb60f5cc65a49 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 3 Feb 2019 18:40:00 +0700 Subject: [PATCH] CPU [Linux/ARM]: Use Hardware field directly --- neofetch | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index de798e88..70866b99 100755 --- a/neofetch +++ b/neofetch @@ -1805,13 +1805,9 @@ get_cpu() { ;; *) - cpu="$(awk -F ': | @' '/model name|Processor|^cpu model|chip type|^cpu type/ { - printf $2; - exit - }' "$cpu_file")" - - [[ "$cpu" == *"processor rev"* ]] && \ - cpu="$(awk -F':' '/Hardware/ {print $2; exit}' "$cpu_file")" + cpu="$(awk -F ': | @' \ + '/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ { + printf $2; exit}' "$cpu_file")" ;; esac