Move iOS detection to the top of the block

This commit is contained in:
Dylan 2016-05-07 20:33:00 +10:00
parent 55a907b454
commit ffab8e2f75
1 changed files with 1 additions and 1 deletions

View File

@ -449,11 +449,11 @@ shopt -s nocasematch extglob
case "$(uname -sm)" in
"Linux"*) os="Linux" ;;
*"iPhone"* | *"iPad"* | *"iPod"*) os="iOS" ;;
"Darwin"*) os="Mac OS X" ;;
"OpenBSD"*) os="OpenBSD" ;;
"FreeBSD"* | "NetBSD"*) os="BSD" ;;
"CYGWIN"*) os="Windows" ;;
*"iPhone"* | *"iPad"* | *"iPod"*) os="iOS" ;;
*) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;;
esac