Skip to content

Commit

Permalink
fix: handle the deprecation notice from SDKMan
Browse files Browse the repository at this point in the history
  • Loading branch information
vibe13 committed Jan 15, 2025
1 parent c581ab9 commit 36bd910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/sbomer-generator/runtime/func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 36bd910

Please sign in to comment.