autocore: Fix schema display? x? error

This commit is contained in:
zxlhhyccc 2022-10-22 00:38:13 +08:00 committed by GitHub
parent 00c38b88e0
commit 13b33e9832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ case "$DISTRIB_TARGET" in
"x86"/*)
if grep -q "GenuineIntel" "/proc/cpuinfo"; then
cpu_temp="$(sensors "coretemp-*" 2>"/dev/null" | grep -E "(Package id |Core )" | grep -Eo "\+[0-9.]*°C" | head -n1 | tr -d "+")"
else grep -q "AuthenticAMD" "/proc/cpuinfo"; then
elif grep -q "AuthenticAMD" "/proc/cpuinfo"; then
cpu_temp="$(sensors "k*temp-*" 2>"/dev/null" | awk '/Tdie/ {print $2}' | head -n1 | tr -d "+")"
fi
;;