mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
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:
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
Block a user