浏览代码

Update microcode.sh

tweak
tteckster 2 年之前
父节点
当前提交
7eba5494ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 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