fix script/compile #1089 (#1090)

Co-authored-by: Johannes Lötzsch <git@johannesloetzsch.de>
This commit is contained in:
Johannes Lötzsch 2021-12-05 12:05:05 +01:00 committed by GitHub
parent 12dbbbb43f
commit ec4f9f95fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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