fixing cpu being 686-class, or whatever

This commit is contained in:
NishiOwO 2024-03-22 20:59:11 +09:00
parent ccd5d9f526
commit 0bd5b7015b

View file

@ -2331,7 +2331,7 @@ get_cpu() {
"BSD") "BSD")
# Get CPU name. # Get CPU name.
cpu="$(sysctl -n hw.model)" cpu="$(sysctl -n machdep.cpu_brand || sysctl -n hw.model)"
cpu="${cpu/[0-9]\.*}" cpu="${cpu/[0-9]\.*}"
cpu="${cpu/ @*}" cpu="${cpu/ @*}"