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:
Muhammad Herdiansyah 2016-12-25 14:33:33 +07:00
parent 4c3805117b
commit de8779db8f
1 changed files with 2 additions and 2 deletions

View File

@ -741,10 +741,10 @@ 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.
[[ "$distro" == "NetBSD"* || "$os" == "MINIX" ]] && local os="Linux" [[ "$distro" == "NetBSD"* ]] && local os="Linux"
case "$os" in case "$os" in
"Linux" | "Windows") "Linux" | "MINIX" | "Windows")
# Get CPU name. # Get CPU name.
case "$distro" in case "$distro" in
"Android"*) cpu="$(getprop ro.product.board)" ;; "Android"*) cpu="$(getprop ro.product.board)" ;;