mirror of https://github.com/sbt/sbt.git
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:
parent
4043810dda
commit
36e8246825
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue