Skip to content

Commit 5252119

Browse files
authored
Merge pull request sbt#138 from sbt/wip/java_version2
Fix checkJava function
2 parents 86afaae + acd610b commit 5252119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/universal/bin/sbt-launch-lib.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ checkJava() {
161161
echo Please go to http://www.java.com/getjava/ and download
162162
echo
163163
exit 1
164-
elif [[ ! "$java_version" > "$required_version" ]]; then
164+
elif [[ "$java_version" < "$required_version" ]]; then
165165
echo
166166
echo The java installation you have is not up to date
167167
echo $script_name requires at least version $required_version+, you have

0 commit comments

Comments
 (0)