Skip to content

Instantly share code, notes, and snippets.

@berngp
Created June 12, 2012 20:11
Show Gist options
  • Save berngp/2919856 to your computer and use it in GitHub Desktop.
Save berngp/2919856 to your computer and use it in GitHub Desktop.
Missing lines for JAVA CMD check on EC2-CMD file.
# 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