Переглянути джерело

Update microcode.sh

tweak
tteckster 1 рік тому
батько
коміт
117c32a408
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      misc/microcode.sh

+ 1 - 1
misc/microcode.sh

@@ -30,7 +30,7 @@ msg_ok() { echo -e "${BFR} ${CM} ${GN}$1${CL}"; }
 msg_error() { echo -e "${BFR} ${CROSS} ${RD}$1${CL}"; }
 
 header_info
-current_microcode=$(journalctl -k | grep -E "microcode: microcode" | awk -F 'microcode: microcode updated early to revision |, date = ' '{print $2 ", date = " $3}')
+current_microcode=$(journalctl -k | grep -oP "microcode: updated early: [^ ]+ -> \K[^,]+, date = [^ ]+" | head -n 1)
 [ -z "$current_microcode" ] && current_microcode="Not found."
 
 intel() {