Skip to content

Commit 1ea407c

Browse files
authored
Fix update warn on new shells for update cmd (#888)
1 parent 7547946 commit 1ea407c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/bash/sdkman-main.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ function sdk() {
6969
# Various sanity checks and default settings
7070
#
7171

72-
# Check version and candidates cache
72+
# Check candidates cache
7373
if [[ "$COMMAND" != "update" ]]; then
7474
___sdkman_check_candidates_cache "$SDKMAN_CANDIDATES_CACHE" || return 1
75-
___sdkman_check_version_cache
7675
fi
76+
# Check version cache
77+
___sdkman_check_version_cache
7778

7879
# Always presume internet availability
7980
SDKMAN_AVAILABLE="true"

0 commit comments

Comments
 (0)