Created
March 9, 2015 15:28
-
-
Save retrography/4984e4b2f4b8d6981ce7 to your computer and use it in GitHub Desktop.
Detect MacOSX version (only major and minor versions)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sw_vers -productVersion | sed -e "s/^\([0-9]*\)\.\([0-9]*\).*/\1.\2/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment