Created
November 8, 2016 09:28
-
-
Save tomgross/ab71f8098ce296989d601872047d13a9 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
# dynamically get JAVA_HOME on Fedora, CentOS, RHEL | |
JAVA_HOME=`alternatives --display java | sed -n 's/^Current .best. version is \(.*\)\/bin\/java\.$/\1/p'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment