Explorar o código

Update microcode.sh

tweak
tteckster %!s(int64=2) %!d(string=hai) anos
pai
achega
7eba5494ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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