fix: CPU detection (#1035)

Refactor CPU string processing to remove 'th Gen' suffix.
This commit is contained in:
Kroese
2025-09-30 17:18:43 +02:00
committed by GitHub
parent 87a8cf7513
commit fefe1af9e6

View File

@@ -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/}"