Do not add uninstalled SDKs to PATH.

Fixes issue #10 pt1.
This commit is contained in:
Raphael Reitzig 2018-07-14 22:26:38 +02:00
parent 6f86eadfdb
commit debd5e2d66
2 changed files with 7 additions and 4 deletions

View file

@ -17,8 +17,8 @@ if test -f "$sdkman_init"
# This is a subshell, SDKMAN! binaries already in path.
case '*'
# No SDKMAN! in PATH yet, so add candidate binaries
for ITEM in $HOME/.sdkman/candidates/* ;
set -gx PATH $PATH $ITEM/current/bin
for ITEM in $HOME/.sdkman/candidates/*/current ;
set -gx PATH $PATH $ITEM/bin
end
end