fix: update vendor lookup on darwin

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Martin Wimpress 2026-01-26 11:06:12 +00:00
parent 4805fbd6f4
commit 3c16de4de3
1 changed files with 5 additions and 1 deletions

View File

@ -477,7 +477,11 @@ function configure_cpu() {
HOST_CPU_CORES=$(get_nproc)
HOST_CPU_MODEL=$(get_cpu_info '^Model name:')
HOST_CPU_SOCKETS=$(get_cpu_info 'Socket')
HOST_CPU_VENDOR=$(get_cpu_info '^Vendor ID')
if [ "${OS_KERNEL}" == "Darwin" ]; then
HOST_CPU_VENDOR=$(get_cpu_info 'Vendor')
else
HOST_CPU_VENDOR=$(get_cpu_info '^Vendor ID')
fi
if [ "${HOST_CPU_SOCKETS}" = "-" ]; then
HOST_CPU_SOCKETS=1