Fix wildcarded BSD detection
This commit is contained in:
parent
bf3b1c1e2e
commit
55a907b454
4
neofetch
4
neofetch
|
@ -451,9 +451,9 @@ case "$(uname -sm)" in
|
||||||
"Linux"*) os="Linux" ;;
|
"Linux"*) os="Linux" ;;
|
||||||
"Darwin"*) os="Mac OS X" ;;
|
"Darwin"*) os="Mac OS X" ;;
|
||||||
"OpenBSD"*) os="OpenBSD" ;;
|
"OpenBSD"*) os="OpenBSD" ;;
|
||||||
*"BSD"*) os="BSD" ;;
|
"FreeBSD"* | "NetBSD"*) os="BSD" ;;
|
||||||
"CYGWIN"*) os="Windows" ;;
|
"CYGWIN"*) os="Windows" ;;
|
||||||
*"iPhone"* | *"iPad"* | *"iPod"*) os="iOS" ;;
|
*"iPhone"* | *"iPad"* | *"iPod"*) os="iOS" ;;
|
||||||
*) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;;
|
*) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue