CPU: [NetBSD] Remove case statement in favor of 1 line test
This commit is contained in:
parent
fdc350f136
commit
5a6a3d7e5b
4
neofetch
4
neofetch
|
@ -723,9 +723,7 @@ 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.
|
||||
case "$distro" in
|
||||
"NetBSD"*) local os="Linux" ;;
|
||||
esac
|
||||
[[ "$distro" == "NetBSD"* ]] && local os="Linux"
|
||||
|
||||
case "$os" in
|
||||
"Linux" | "Windows")
|
||||
|
|
Reference in New Issue