Created
August 30, 2014 14:53
-
-
Save rkaneko/b9ab8c7afb2d6850e18e to your computer and use it in GitHub Desktop.
See if OS is Mac or not.
This file contains hidden or 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
#!/bin/bash | |
if [ `expr "$(sw_vers -productName)" : '.*Mac'` -gt 0 ]; then | |
echo true | |
else | |
echo false | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment