👌🏻 Use macOS uname syntax

This commit is contained in:
Ben Chatelain 2021-03-28 21:13:59 -07:00
parent 3d54be18ad
commit 799c18e327

View file

@ -20,7 +20,7 @@ ROOT_URL="https://dl.bintray.com/phatblat/mas-bottles"
# Supports macOS versions 11.0 (arm64 & x86_64), 10.15, 10.14, 10.13, 10.12, 10.11
OS_VERSIONS=(arm64_big_sur big_sur catalina mojave high_sierra sierra el_capitan)
if [[ "x86_64" == "$(uname --machine)" ]]; then
if [[ "x86_64" == "$(uname -m)" ]]; then
CURRENT_PLATFORM=big_sur
else
CURRENT_PLATFORM=arm64_big_sur