diff --git a/dev-setup/setup_macos.sh b/dev-setup/setup_macos.sh index 6ebb5b99..3be4a54f 100755 --- a/dev-setup/setup_macos.sh +++ b/dev-setup/setup_macos.sh @@ -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'