From 36e8246825df45cacc537e5e2a02935419c024da Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Wed, 12 Apr 2017 07:57:27 -0400 Subject: [PATCH] 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 --- src/universal/bin/sbt-launch-lib.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal/bin/sbt-launch-lib.bash b/src/universal/bin/sbt-launch-lib.bash index cb7a66a46..d626cf7f4 100755 --- a/src/universal/bin/sbt-launch-lib.bash +++ b/src/universal/bin/sbt-launch-lib.bash @@ -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)