General: Quote string

This commit is contained in:
Dylan Araps 2016-12-06 12:03:09 +11:00
parent 0fd55c5b5c
commit afcb210aaa
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ get_cpu() {
# Show/hide hyperthreaded cores # Show/hide hyperthreaded cores
case "$cpu_cores" in case "$cpu_cores" in
"logical" | "on") cores="$(grep -c ^processor /proc/cpuinfo)" ;; "logical" | "on") cores="$(grep -c "^processor" /proc/cpuinfo)" ;;
"physical") cores="$(grep "^core id" /proc/cpuinfo | sort -u | wc -l)" ;; "physical") cores="$(grep "^core id" /proc/cpuinfo | sort -u | wc -l)" ;;
esac esac
;; ;;