MLBZ521 / MacAdmin

A collection of scripts and tools for managing Apple Devices
MIT License
166 stars 33 forks source link

LatestOSSupported.sh #4

Closed macchrister closed 3 years ago

macchrister commented 3 years ago

LatestOSSupported.sh: showing wrong os supported. I have a iMac20,1 Intel (Retina 5K, 27-inch, 2020) and its showing : LatestOSSupported : Catalina

macchrister commented 3 years ago

I think if you add this lines it would be fine: elif [[ $modelMajorVersion -ge $6 && ( $(/usr/bin/bc <<< "${osMajorVersion} >= 11") -eq 1 || $(/usr/bin/bc <<< "${osMinorPatchVersion} >= 9") -eq 1 ) ]]; then echo "Big Sur" and latestOSSupport=$( iMacModelCheck 7 10 13 13 14 15 )