MyRobotLab/myrobotlab

myrobotlab.sh fails with java 18-ea

AutonomicPerfectionist opened this issue · 0 comments

Describe the bug
myrobotlab.sh checks the version of java upon executing. In Pop OS 22.04, java 18 is provided by openjdk version "18-ea" 2022-03-22, which appears to be an early access build even though 18 has been released. The -ea suffix on the version number causes myrobotlab.sh to incorrectly identify the java version.

To Reproduce
Steps to reproduce the behavior:

  1. Install openjdk-18-jdk on Pop OS 22.04
  2. Run myrobotlab.sh
  3. Observe the error message:
./myrobotlab.sh: line 39: [: 18-ea: integer expression expected
incompatible version of java, java 11 required

Expected behavior
Correct identification of JDK 18, even if it's an early access build.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Pop OS 22.04
  • Browser [e.g. chrome, safari] N/A
  • Version [e.g. 22] Latest develop branch