Update microcode.sh

tweak
This commit is contained in:
tteckster 2023-06-20 16:08:58 -04:00 committed by GitHub
parent bfd5194118
commit 7eba5494ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ if ! command -v pveversion >/dev/null 2>&1; then
exit
fi
msg_info "Checking CPU Vendor"
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+' | head -n 1)
if [ "$cpu" == "GenuineIntel" ]; then
msg_ok "${cpu} was detected"
intel