Skip to content

Commit

Permalink
variable changed
Browse files Browse the repository at this point in the history
  • Loading branch information
prathameshzarkar9 committed Sep 11, 2024
1 parent b91cccc commit 59d65e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ find_version_list() {
java_ver=$6

check_packages jq
all_lts_versions=$(curl -s https://api.adoptium.net/v3/info/available_releases)
all_versions=$(curl -s https://api.adoptium.net/v3/info/available_releases)
if [ "${ifLts}" = "true" ]; then
major_version=$(echo "$all_lts_versions" | jq -r '.most_recent_lts')
major_version=$(echo "$all_versions" | jq -r '.most_recent_lts')
elif [ "${java_ver}" = "latest" ]; then
major_version=$(echo "$all_lts_versions" | jq -r '.most_recent_feature_release')
major_version=$(echo "$all_versions" | jq -r '.most_recent_feature_release')
else
major_version=$(echo "$java_ver" | cut -d '.' -f 1)
fi
Expand Down

0 comments on commit 59d65e1

Please sign in to comment.