Created
June 12, 2012 20:11
-
-
Save berngp/2919856 to your computer and use it in GitHub Desktop.
Missing lines for JAVA CMD check on EC2-CMD file.
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
# Check our Java env | |
if which java | |
then | |
JAVA_CMD="`which java`" | |
else | |
JAVA_HOME=${JAVA_HOME:?JAVA_HOME is not set} | |
JAVA_CMD="$JAVA_HOME/bin/java" | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment