Commit 5a6a3d7e authored by Dylan Araps's avatar Dylan Araps

CPU: [NetBSD] Remove case statement in favor of 1 line test

parent fdc350f1
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment