Make the env install command set the shell versions (#906)

Fixes #905.
This commit is contained in:
Joe Horsnell
2021-04-30 14:32:52 +01:00
committed by GitHub
parent afccde0db1
commit cc571d30fc
2 changed files with 2 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ function __sdkman_setup_env() {
fi
sdkman_auto_answer="true" USE="n" __sdkman_env_each_candidate "$sdkmanrc" "__sdk_install"
__sdkman_load_env "$sdkmanrc"
}
function __sdkman_load_env() {

View File

@@ -35,6 +35,7 @@ Feature: Per-project configuration
When I enter "sdk env install"
Then I see "Done installing!"
And the candidate "groovy" version "2.4.1" is installed
And the candidate "groovy" version "2.4.1" is in use
And the candidate "groovy" version "2.0.5" should be the default
Scenario: The env install subcommand is issued without an sdkman project configuration present