Skip to content

Commit f240c7c

Browse files
Oliver Weilermarc0der
authored andcommitted
Revert error message
1 parent 9ae0acc commit f240c7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/bash/sdkman-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ function __sdk_env() {
4040

4141
__sdkman_is_blank_line "$normalised_line" && continue
4242

43-
if ! __sdkman_is_candidate_version "$normalised_line"; then
44-
__sdkman_echo_red "Invalid candidate version!"
43+
if ! __sdkman_matches_candidate_format "$normalised_line"; then
44+
__sdkman_echo_red "Invalid candidate format!"
4545
echo ""
4646
__sdkman_echo_yellow "Expected 'candidate=version' but found '$normalised_line'"
4747

@@ -76,6 +76,6 @@ function __sdkman_normalise() {
7676
echo "${line_without_comments//[[:space:]]/}"
7777
}
7878

79-
function __sdkman_is_candidate_version() {
79+
function __sdkman_is_matches_candidate_format() {
8080
[[ "$1" =~ ^[[:lower:]]+\=.+$ ]]
8181
}

0 commit comments

Comments
 (0)