mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-04-19 14:37:01 -04:00
Improve error message for malformed candidate entry
This commit is contained in:
committed by
Marco Vermeulen
parent
20ace978d7
commit
4302f4178d
@@ -29,7 +29,7 @@ function __sdk_env {
|
||||
|
||||
while IFS= read -r line || [[ -n $line ]]; do
|
||||
if [[ ! $line =~ ^([[:lower:]]+)=(.+)$ ]]; then
|
||||
__sdkman_echo_red "${sdkmanrc}:${line_number}: Invalid candidate entry! Expected 'candidate=version' but found '$line'"
|
||||
__sdkman_echo_red "${sdkmanrc}:${line_number}: Invalid candidate entry format! Expected 'candidate=version' but found '$line'"
|
||||
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user