File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ function __sdkman_generate_sdkmanrc() {
6666 local version
6767 [[ -n " $CURRENT " ]] && version=" $CURRENT " || version=" $( __sdkman_secure_curl " ${SDKMAN_CANDIDATES_API} /candidates/default/java" ) "
6868
69- echo " java=$version " > " $sdkmanrc "
69+ echo " # Enable auto-env through the sdkman_auto_env config" > " $sdkmanrc "
70+ echo " # Add key=value pairs of SDKs to use below" >> " $sdkmanrc "
71+ echo " java=$version " >> " $sdkmanrc "
7072
7173 __sdkman_echo_green " $sdkmanrc created."
7274}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class EnvCommandSpec extends SdkmanEnvSpecification {
3131 bash. execute(" sdk env init" )
3232
3333 then :
34- new File (bash. workDir, ' .sdkmanrc' ). text == expected
34+ new File (bash. workDir, ' .sdkmanrc' ). text. contains( expected)
3535
3636 where :
3737 setupCandidates << [
You can’t perform that action at this time.
0 commit comments