We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae0acc commit f240c7cCopy full SHA for f240c7c
src/main/bash/sdkman-env.sh
@@ -40,8 +40,8 @@ function __sdk_env() {
40
41
__sdkman_is_blank_line "$normalised_line" && continue
42
43
- if ! __sdkman_is_candidate_version "$normalised_line"; then
44
- __sdkman_echo_red "Invalid candidate version!"
+ if ! __sdkman_matches_candidate_format "$normalised_line"; then
+ __sdkman_echo_red "Invalid candidate format!"
45
echo ""
46
__sdkman_echo_yellow "Expected 'candidate=version' but found '$normalised_line'"
47
@@ -76,6 +76,6 @@ function __sdkman_normalise() {
76
echo "${line_without_comments//[[:space:]]/}"
77
}
78
79
-function __sdkman_is_candidate_version() {
+function __sdkman_is_matches_candidate_format() {
80
[[ "$1" =~ ^[[:lower:]]+\=.+$ ]]
81
0 commit comments