Created
September 15, 2014 22:23
-
-
Save kuetemeier/8eaf7698b4702579ec0f to your computer and use it in GitHub Desktop.
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
if [ "$(uname)" == 'Darwin' ]; then | |
OS='Mac' | |
elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then | |
OS='Linux' | |
elif [ "$(expr substr $(uname -s) 1 10)" == 'MINGW32_NT' ]; then | |
OS='Cygwin' | |
else | |
echo "Your platform ($(uname -a)) is not supported." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment