mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-04-23 08:31:27 -04:00
Fix update warn on new shells for update cmd (#888)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user