We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cde4914 + bce73f6 commit f93315aCopy full SHA for f93315a
neofetch
@@ -2579,9 +2579,8 @@ END
2579
esac
2580
2581
# If cpu is not detected on a platform-specific bases, fallback to cpuinfo method
2582
- [[ -z "$cpu" ]] && cpu="$(awk -F '\\s*: | @' \
2583
- '/model name|Model|uarch|Hardware|Processor|^cpu model|chip type|^cpu type/ {
2584
- cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' "$cpu_file")"
+ [[ -z "$cpu" ]] && cpu="$(awk -F '\\s*: | @' '/model name|Model|uarch|Hardware|Processor|^cpu model|chip type|^cpu type/ { print $2; exit}' "$cpu_file")"
+ [[ -z "$cpu" ]] && cpu="$(awk -F '\\s*: | @' '/Hardware/ {print $2; exit}' "$cpu_file")"
2585
2586
speed_dir="/sys/devices/system/cpu/cpu0/cpufreq"
2587
0 commit comments