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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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