From fefe1af9e6160c5c899ff93a25d5e2487185ab14 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 30 Sep 2025 17:18:43 +0200 Subject: [PATCH] fix: CPU detection (#1035) Refactor CPU string processing to remove 'th Gen' suffix. --- src/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.sh b/src/utils.sh index b3e85d0..e158f55 100644 --- a/src/utils.sh +++ b/src/utils.sh @@ -126,8 +126,8 @@ cpu() { cpu="${cpu// [0-9] Core}" cpu="${cpu// [0-9][0-9] Core}" cpu="${cpu// [0-9][0-9][0-9] Core}" - cpu="${cpu// [0-9]th Gen}" - cpu="${cpu// [0-9][0-9]th Gen}" + cpu="${cpu//[0-9]th Gen }" + cpu="${cpu//[0-9][0-9]th Gen }" cpu="${cpu// Processor/}" cpu="${cpu// Quad core/}" cpu="${cpu// Dual core/}"