mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-02-25 18:55:38 -06:00
Dev setup for macOS: Java version check now looks for any version beginning with "17", whereas before, the version had to specifically be "17", so 17.x point releases were not being properly detected
This commit is contained in:
@@ -126,7 +126,7 @@ fi
|
||||
|
||||
# ensure Java 17 is the active version
|
||||
JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d\" -f2)
|
||||
if [ "$JAVA_VERSION" == "17" ]; then
|
||||
if [ ! -z $(echo $JAVA_VERSION | egrep "^17") ]; then
|
||||
echo '[X] Java 17 is available in the path'
|
||||
else
|
||||
echo 'Java 17 is not available in the path'
|
||||
|
||||
Reference in New Issue
Block a user