Last active
August 29, 2015 14:06
-
-
Save futureimperfect/45f8cf5bc0c0abc718b4 to your computer and use it in GitHub Desktop.
Get OS X Minor Version (Yosemite Compatible)
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
osversionlong=$(sw_vers -productVersion) | |
osversionshort=$(echo $osversionlong | python -c 'import sys; out = sys.stdin.read().split(".")[1]; print out') | |
echo "$osversionshort" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment