CPU [Minix]: Added case instead of setting a local variable
I still don't remember why I made it into a local variable.
This commit is contained in:
parent
4c3805117b
commit
de8779db8f
4
neofetch
4
neofetch
|
@ -741,10 +741,10 @@ get_cpu() {
|
|||
# NetBSD emulates the Linux /proc filesystem instead of using sysctl for hw
|
||||
# information so we have to use this block below which temporarily sets the
|
||||
# OS to "Linux" for the duration of this function.
|
||||
[[ "$distro" == "NetBSD"* || "$os" == "MINIX" ]] && local os="Linux"
|
||||
[[ "$distro" == "NetBSD"* ]] && local os="Linux"
|
||||
|
||||
case "$os" in
|
||||
"Linux" | "Windows")
|
||||
"Linux" | "MINIX" | "Windows")
|
||||
# Get CPU name.
|
||||
case "$distro" in
|
||||
"Android"*) cpu="$(getprop ro.product.board)" ;;
|
||||
|
|
Reference in New Issue