Skip to content

Commit

Permalink
[HEADLESS] More permissive JDK check
Browse files Browse the repository at this point in the history
Was very strict on the name format, but it can create some issues like for AlpineLinux which is used as based for GAMA Dockers
ci release
  • Loading branch information
RoiArthurB committed May 5, 2022
1 parent 059fdda commit dad367d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
@@ -1,8 +1,10 @@
#!/bin/bash

javaVersion=$(java -version 2>&1 | head -n 1 | cut -d "\"" -f 2)
# Check if good Java version before everything
if [[ "$(java -version 2>&1 | head -n 1 | cut -d "\"" -f 2 | cut -d "." -f 1)" != "17" ]]; then
if [[ ${javaVersion:2} == 17 ]]; then
echo "You should use Java 17 to run GAMA"
echo "Found you using version : $javaVersion"
exit 1
fi

Expand Down
@@ -1,8 +1,10 @@
#!/bin/bash

javaVersion=$(java -version 2>&1 | head -n 1 | cut -d "\"" -f 2)
# Check if good Java version before everything
if [[ "$(java -version 2>&1 | head -n 1 | cut -d "\"" -f 2 | cut -d "." -f 1)" != "17" ]]; then
if [[ ${javaVersion:2} == 17 ]]; then
echo "You should use Java 17 to run GAMA"
echo "Found you using version : $javaVersion"
exit 1
fi

Expand Down

0 comments on commit dad367d

Please sign in to comment.