Skip to content

Commit cc571d3

Browse files
authored
Make the env install command set the shell versions (#906)
Fixes #905.
1 parent afccde0 commit cc571d3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/bash/sdkman-env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function __sdkman_setup_env() {
4040
fi
4141

4242
sdkman_auto_answer="true" USE="n" __sdkman_env_each_candidate "$sdkmanrc" "__sdk_install"
43+
__sdkman_load_env "$sdkmanrc"
4344
}
4445

4546
function __sdkman_load_env() {

src/test/resources/features/per_project_configuration.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Feature: Per-project configuration
3535
When I enter "sdk env install"
3636
Then I see "Done installing!"
3737
And the candidate "groovy" version "2.4.1" is installed
38+
And the candidate "groovy" version "2.4.1" is in use
3839
And the candidate "groovy" version "2.0.5" should be the default
3940

4041
Scenario: The env install subcommand is issued without an sdkman project configuration present

0 commit comments

Comments
 (0)