mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-20 10:47:36 +00:00
General: Quote string
This commit is contained in:
2
neofetch
2
neofetch
@@ -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
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user