Fix update warn on new shells for update cmd (#888)

This commit is contained in:
Felipe Santos
2021-03-31 07:43:30 -03:00
committed by GitHub
parent 7547946d94
commit 1ea407c8e5

View File

@@ -69,11 +69,12 @@ function sdk() {
# Various sanity checks and default settings
#
# Check version and candidates cache
# Check candidates cache
if [[ "$COMMAND" != "update" ]]; then
___sdkman_check_candidates_cache "$SDKMAN_CANDIDATES_CACHE" || return 1
___sdkman_check_version_cache
fi
# Check version cache
___sdkman_check_version_cache
# Always presume internet availability
SDKMAN_AVAILABLE="true"