Last active
December 14, 2015 07:48
-
-
Save marcransome/23dcc09ff389846731c4 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
set DESIRED_JDK "1.8" | |
if set JDK (/usr/libexec/java_home -F -v $DESIRED_JDK ^ /dev/null) | |
set -x JAVA_HOME $JDK | |
else | |
echo "Desired JDK version not found ($DESIRED_JDK)" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment