Skip to content

Instantly share code, notes, and snippets.

@aanklewicz
Last active June 23, 2020 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aanklewicz/ee0f2c0e16a43053a748874653004b7e to your computer and use it in GitHub Desktop.
Save aanklewicz/ee0f2c0e16a43053a748874653004b7e to your computer and use it in GitHub Desktop.
Checks to see if your mac is compatible with macOS 11 Big Sur
model=$(sysctl hw.model)
if echo $model | grep -Ei "(MacBookAir[6-9]|MacBookPro1[0-6]|MacPro[6-7]|MacBook(10|9|8)|Macmini[7-8]|MacPro[6-7]|iMacPro1),\d|iMac1(4,4|[5-9],\d)" ; then
echo "macOS 11 Compatible"
else
echo "macOS 11 Incompatible"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment