From 51e20a147234b2f2058cf1b8859b820f5b17a73f Mon Sep 17 00:00:00 2001 From: Debankan Roy Date: Thu, 2 Jul 2026 13:11:44 +0530 Subject: [PATCH] Fix: Added a check for jdk directory for Mason(verison pinned at 0.2.39 needs an update), that directly runs link_linux.sh and fails when no jdk is present --- scripts/link_linux.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/link_linux.sh b/scripts/link_linux.sh index 563d7da0..93498da3 100755 --- a/scripts/link_linux.sh +++ b/scripts/link_linux.sh @@ -6,6 +6,12 @@ set -e # Set env variables to build with mac toolchain but linux target JAVA_HOME="./jdks/linux/jdk-21" + +# Check if download exists/completed if not completed download before building +if [ ! -d "$JAVA_HOME" ]; then + ./scripts/download_linux_jdk.sh +fi + # Build in dist/linux rm -rf dist/linux ${JAVA_HOME}/bin/jlink \