From 1fab5bbd1096da9402fea8021a873f71fdbd6d1d Mon Sep 17 00:00:00 2001 From: Rem01Gaming Date: Wed, 16 Oct 2024 07:07:51 +0700 Subject: [PATCH] cpu: Properly skipping set of `cpu0` state Signed-off-by: Rem01Gaming --- share/utils/cpu/cpu_util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/utils/cpu/cpu_util.sh b/share/utils/cpu/cpu_util.sh index fe932b5..d06f5b9 100644 --- a/share/utils/cpu/cpu_util.sh +++ b/share/utils/cpu/cpu_util.sh @@ -188,9 +188,9 @@ cpu_core_ctrl() { selected=$(fzf_select_n "$(printf '%s\n' "${options[@]}")" "CPU Core Control: ") - case $selected in + case "$selected" in "Back to the main menu") break ;; - " ") ;; + " " | *system*) ;; *) cpu_number=${selected:3:1} new_status=$((1 - $(<"${cpu_dir}/cpu${cpu_number}/online")))