From 79d4d239ad3d6f2cf6c2abfdfcc26538524738dc Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 8 Sep 2021 03:20:15 +0000 Subject: [PATCH] bugfix: don't block macOS 11+ --- install.sh | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/install.sh b/install.sh index d412de7..31258c2 100644 --- a/install.sh +++ b/install.sh @@ -56,38 +56,38 @@ if [ "$(uname | grep -i 'Darwin')" ]; then exit 1 fi - # OS X (10) and macOS (11) should be supported - - if [ "$OSX_MAJOR" -gt 11 ]; then - echo "WARNING: macOS 12+ may or may not be supported" - 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 - # - # 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 - # Snow - if [ "$OSX_MINOR" -eq 6 ]; then - OS='snow' - fi + # Lion + if [ $OSX_MINOR -eq 7 ]; then + OS='lion' + fi - # Lion - if [ $OSX_MINOR -eq 7 ]; then - OS='lion' + # Mountain Lion + if [ "$OSX_MINOR" -eq 8 ]; then + OS='mountain' + fi fi - # Mountain Lion - if [ "$OSX_MINOR" -eq 8 ]; then - OS='mountain' - fi + # OS X (10) and macOS (11) should be supported - # Mavericks, Yosemite - if [ "$OSX_MINOR" -ge 9 ]; then - OS='mavericks' + if [ "$OSX_MAJOR" -gt 11 ]; then + echo "WARNING: macOS 12+ may or may not be supported" fi if [ -n "$(sysctl hw | grep 64bit | grep ': 1')" ]; then