Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.