bugfix: don't block macOS 11+

This commit is contained in:
AJ ONeal 2021-09-08 03:20:15 +00:00
parent 60f206373c
commit 79d4d239ad
1 changed files with 28 additions and 28 deletions

View File

@ -56,40 +56,40 @@ if [ "$(uname | grep -i 'Darwin')" ]; then
exit 1 exit 1
fi fi
# Mavericks+ works for all current macOS versions
OS='mavericks'
if [[ "$OSX_MAJOR" -eq 10 ]]; then
#
# Minor
#
if [ "$OSX_MINOR" -le 5 ]; then
echo "unsupported OS X version (os 10.5-)"
exit 1
fi
# Snow
if [ "$OSX_MINOR" -eq 6 ]; then
OS='snow'
fi
# Lion
if [ $OSX_MINOR -eq 7 ]; then
OS='lion'
fi
# Mountain Lion
if [ "$OSX_MINOR" -eq 8 ]; then
OS='mountain'
fi
fi
# OS X (10) and macOS (11) should be supported # OS X (10) and macOS (11) should be supported
if [ "$OSX_MAJOR" -gt 11 ]; then if [ "$OSX_MAJOR" -gt 11 ]; then
echo "WARNING: macOS 12+ may or may not be supported" echo "WARNING: macOS 12+ may or may not be supported"
fi fi
#
# Minor
#
if [ "$OSX_MINOR" -le 5 ]; then
echo "unsupported OS X version (os 10.5-)"
exit 1
fi
# Snow
if [ "$OSX_MINOR" -eq 6 ]; then
OS='snow'
fi
# Lion
if [ $OSX_MINOR -eq 7 ]; then
OS='lion'
fi
# Mountain Lion
if [ "$OSX_MINOR" -eq 8 ]; then
OS='mountain'
fi
# Mavericks, Yosemite
if [ "$OSX_MINOR" -ge 9 ]; then
OS='mavericks'
fi
if [ -n "$(sysctl hw | grep 64bit | grep ': 1')" ]; then if [ -n "$(sysctl hw | grep 64bit | grep ': 1')" ]; then
ARCH="64" ARCH="64"
else else