From 117c32a408c9c60e1a76b57938c37db1eceaf600 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 21 Nov 2023 10:26:20 -0500 Subject: [PATCH] Update microcode.sh tweak --- misc/microcode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/microcode.sh b/misc/microcode.sh index a4653be5..91296a22 100644 --- a/misc/microcode.sh +++ b/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() {