diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-08-10 01:37:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 01:37:23 +0300 |
commit | 3a554b81abdf39c3ae605451bb3ec0d6dfd41703 (patch) | |
tree | a8e8b76f2e36986754e2dec9a690d7e4b31b09e1 /src/java/install.sh | |
parent | abfefdcb31d1a76a9d7718ccf5f4da6b578cdb45 (diff) |
Java: fix gradle bug - invalid version (#84)
* Java: fix gradle bug - invalid version
* drop 'lts'
Diffstat (limited to 'src/java/install.sh')
-rwxr-xr-x | src/java/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/install.sh b/src/java/install.sh index 411fffb..002adf6 100755 --- a/src/java/install.sh +++ b/src/java/install.sh @@ -100,7 +100,7 @@ sdk_install() { local set_as_default=${6:-"true"} if [ "${requested_version}" = "none" ]; then return; fi # Blank will install latest stable version SDKMAN has - if [ "${requested_version}" = "lts" ] || [ "${requested_version}" = "default" ]; then + if [ "${requested_version}" = "latest" ] || [ "${requested_version}" = "lts" ] || [ "${requested_version}" = "default" ]; then requested_version="" elif echo "${requested_version}" | grep -oE "${full_version_check}" > /dev/null 2>&1; then echo "${requested_version}" |