Skip to content

Commit

Permalink
ci: improve code for setting jenv jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
easye committed Mar 13, 2024
1 parent 98ece29 commit 2e2ff17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/install-openjdk.bash
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function determine_openjdk() {
esac
;;
*)
echo No known dist for $(uname)
echo No known dist for ${uname}
esac
}

Expand All @@ -163,7 +163,7 @@ function download_and_extract() {
popd
}

function add_jdk() {
function add_jdk_to_jenv() {
echo $dist
echo $tmpdir
case $(uname) in
Expand All @@ -178,8 +178,8 @@ function add_jdk() {

determine_openjdk
download_and_extract
add_jdk
add_jdk_to_jenv

. ${DIR}/set-jdk.bash ${jdk}
. ${DIR}/set-jdk.bash ${jdk} ${ABCL_ROOT}

jenv doctor
1 change: 1 addition & 0 deletions ci/set-jdk.bash
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ function set_jdk() {
popd
}

set_jdk ${JDK_VERSION} ${ABCL_VERSION}

0 comments on commit 2e2ff17

Please sign in to comment.