CPU: [NetBSD] Remove case statement in favor of 1 line test
This commit is contained in:
parent
fdc350f136
commit
5a6a3d7e5b
1 changed files with 1 additions and 3 deletions
4
neofetch
4
neofetch
|
@ -723,9 +723,7 @@ get_cpu() {
|
||||||
# NetBSD emulates the linux /proc filesystem instead of using sysctl for hw
|
# 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
|
# information so we have to use this block below which temporarily sets the
|
||||||
# OS to 'Linux' for the duration of this function.
|
# OS to 'Linux' for the duration of this function.
|
||||||
case "$distro" in
|
[[ "$distro" == "NetBSD"* ]] && local os="Linux"
|
||||||
"NetBSD"*) local os="Linux" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | "Windows")
|
"Linux" | "Windows")
|
||||||
|
|
Loading…
Reference in a new issue