chore: update install script to not warn on MacOS Big Sur
The official version is 11.0.
@@ -13,11 +13,16 @@ check_help_for() {
# If we're running on OS-X, older than 10.13, then we always
# fail to find these options to force fallback
if check_cmd sw_vers; then
- if [ "$(sw_vers -productVersion | cut -d. -f2)" -lt 13 ]; then
- # Older than 10.13
- echo "Warning: Detected OS X platform older than 10.13"
+ case "$(sw_vers -productVersion)" in
+ 10.13) ;; # High Sierra
+ 10.14) ;; # Mojave
+ 10.15) ;; # Catalina
+ 11.*) ;; # Big Sur
+ *)
+ warn "Detected OS X platform older than 10.13 (High Sierra)"
_ok="n"
- fi
+ ;;
+ esac
fi
for _arg in "$@"; do
