Created
August 25, 2014 05:14
-
-
Save britzl/267a70d2cf144d651285 to your computer and use it in GitHub Desktop.
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
# from http://stackoverflow.com/a/8597411/1266551 | |
if [[ "$OSTYPE" == "linux-gnu" ]]; then | |
# ... | |
elif [[ "$OSTYPE" == "darwin"* ]]; then | |
# Mac OSX | |
elif [[ "$OSTYPE" == "cygwin" ]]; then | |
# POSIX compatibility layer and Linux environment emulation for Windows | |
elif [[ "$OSTYPE" == "msys" ]]; then | |
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW) | |
elif [[ "$OSTYPE" == "win32" ]]; then | |
# I'm not sure this can happen. | |
elif [[ "$OSTYPE" == "freebsd"* ]]; then | |
# ... | |
else | |
# Unknown. | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment