Browse Source

bugfix: don't block macOS 11+

master
AJ ONeal 3 years ago
parent
commit
79d4d239ad
  1. 52
      install.sh

52
install.sh

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

Loading…
Cancel
Save