From 5c7ab93129aee9efad0d7922f46778609213444c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 14 Nov 2016 00:59:29 +1100 Subject: [PATCH] CPU: Quote strings --- neofetch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index ecb11b0e..44fc20a5 100755 --- a/neofetch +++ b/neofetch @@ -685,13 +685,13 @@ get_cpu() { # Get cpu speed if [[ -d "$speed_dir" ]]; then case "$speed_type" in - current) speed_type="scaling_cur_freq" ;; - min) speed_type="scaling_min_freq" ;; - max) speed_type="scaling_max_freq" ;; - bios) speed_type="bios_limit" ;; - scaling_current) speed_type="scaling_cur_freq" ;; - scaling_min) speed_type="scaling_min_freq" ;; - scaling_max) speed_type="scaling_max_freq" ;; + "current") speed_type="scaling_cur_freq" ;; + "min") speed_type="scaling_min_freq" ;; + "max") speed_type="scaling_max_freq" ;; + "bios") speed_type="bios_limit" ;; + "scaling_current") speed_type="scaling_cur_freq" ;; + "scaling_min") speed_type="scaling_min_freq" ;; + "scaling_max") speed_type="scaling_max_freq" ;; esac # Fallback to cpuinfo_max_freq if $speed_type fails