Skip to content

Commit

Permalink
fix(prereq): Remove trailing -ea string in Java version string for ve…
Browse files Browse the repository at this point in the history
…rsion 20
  • Loading branch information
hutcheb committed Jan 18, 2023
1 parent a8686cf commit d465153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/script/prerequisiteCheck.groovy
Expand Up @@ -98,7 +98,8 @@ def checkDotnet() {

def checkJavaVersion(String minVersion, String maxVersion) {
print "Detecting Java version: "
String curVersion = System.properties['java.version']
String curVersion = System.properties['java.version'].split("-")[0]

def result
if (minVersion != null) {
result = checkVersionAtLeast(curVersion, minVersion)
Expand Down

0 comments on commit d465153

Please sign in to comment.