From ec4f9f95fb7a61e7bfb3c3c427e6b7a9c3d8a021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6tzsch?= Date: Sun, 5 Dec 2021 12:05:05 +0100 Subject: [PATCH] fix script/compile #1089 (#1090) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Johannes Lötzsch --- script/compile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/compile b/script/compile index c1ab7ef6..3a586daf 100755 --- a/script/compile +++ b/script/compile @@ -19,7 +19,9 @@ then exit 1 fi -"$GRAALVM_HOME/bin/gu" install native-image +if [[ ! -x "$GRAALVM_HOME/bin/native-image" ]]; then + "$GRAALVM_HOME/bin/gu" install native-image +fi export JAVA_HOME=$GRAALVM_HOME export PATH=$GRAALVM_HOME/bin:$PATH