From 5a4a06d14e042375c0f31216a8b9cebe5e1bfc1b Mon Sep 17 00:00:00 2001 From: k8wu <18063294+k8wu@users.noreply.github.com> Date: Tue, 21 May 2024 19:08:56 -0400 Subject: [PATCH] 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 --- dev-setup/setup_macos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'