Created
April 20, 2017 13:23
-
-
Save autosquid/3778f46005552048e7e9598ccdfe6ba9 to your computer and use it in GitHub Desktop.
script to determine os type
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
# OS specific support (must be 'true' or 'false'). | |
cygwin=false | |
msys=false | |
darwin=false | |
case "`uname`" in | |
CYGWIN* ) | |
cygwin=true | |
;; | |
Darwin* ) | |
darwin=true | |
;; | |
MINGW* ) | |
msys=true | |
;; | |
esac | |
# For Cygwin, ensure paths are in UNIX format before anything is touched. | |
if $cygwin ; then | |
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment