From 5b7f9a8a5c0410e7918d1556e0312806a3c8b86e Mon Sep 17 00:00:00 2001 From: Mathias-Boulay Date: Sat, 15 Jun 2024 18:06:34 +0200 Subject: [PATCH] Fix(build): switch java versions on the fly only for local docker builds --- setdevkitpath.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setdevkitpath.sh b/setdevkitpath.sh index 1bc84bf..01af5eb 100755 --- a/setdevkitpath.sh +++ b/setdevkitpath.sh @@ -7,8 +7,13 @@ then export TARGET_VERSION=21 fi + # Set custom java version as the defautl jdk depending on the target version -update-java-alternatives -s java-1.${TARGET_VERSION}* +# Local build with docker only +if [[ -z "$CI" ]] +then + update-java-alternatives -s java-1.${TARGET_VERSION}* +fi if [[ -z "$BUILD_FREETYPE_VERSION" ]] then