Workaround for brew test sbt

brew test sbt doesn't detect java version correctly. This change makes the script a bit more safer.

Fixes #150
This commit is contained in:
Eugene Yokota 2017-04-12 07:57:27 -04:00
parent 4043810dda
commit 36e8246825
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ checkJava() {
}
copyRt() {
if [[ "$java_version" > "8" ]]; then
if [[ "$java_version" == "9" ]]; then
rtexport=$(rt_export_file)
java9_ext=$("$java_cmd" ${JAVA_OPTS} ${SBT_OPTS:-$default_sbt_opts} ${java_args[@]} \
-jar "$rtexport" --rt-ext-dir)