From 36bd9100efad0f69f6ba83a03a898ea49946510d Mon Sep 17 00:00:00 2001 From: Andrea Vibelli Date: Wed, 15 Jan 2025 11:48:11 +0100 Subject: [PATCH] fix: handle the deprecation notice from SDKMan --- images/sbomer-generator/runtime/func.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/sbomer-generator/runtime/func.sh b/images/sbomer-generator/runtime/func.sh index e268ec6a6..478e784e6 100755 --- a/images/sbomer-generator/runtime/func.sh +++ b/images/sbomer-generator/runtime/func.sh @@ -52,7 +52,7 @@ function install_java() { sdk install java "${version}" # Make an alias for major version - sdk install java ${version%%.*} "$(sdk home java ${version})" + sdk install java ${version%%.*} "$(sdk home java ${version} | tail -n 1)" # Of course JDK 8 uses different paths and the keytool command does not have the '-cacerts' flag local ca_keystore_path="$HOME/.sdkman/candidates/java/${version}/jre/lib/security/cacerts"