Browse Source

Update microcode.sh

tweak
tteckster 2 years ago
parent
commit
7eba5494ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misc/microcode.sh

+ 1 - 1
misc/microcode.sh

@@ -92,7 +92,7 @@ if ! command -v pveversion >/dev/null 2>&1; then
   exit
   exit
 fi
 fi
 msg_info "Checking CPU Vendor"
 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
 if [ "$cpu" == "GenuineIntel" ]; then
   msg_ok "${cpu} was detected"
   msg_ok "${cpu} was detected"
   intel
   intel