Fixes a bug in completion.

Retrieving the version list would error out of the given
candidate was never installed (or invalid).
This commit is contained in:
Raphael Reitzig 2018-07-15 12:09:18 +02:00
parent 2a51c81345
commit c8a1208c51

View file

@ -78,7 +78,9 @@ end
function __fish_sdkman_installed_versions
set cmd (commandline -opc)
ls -v1 ~/.sdkman/candidates/$cmd[3] | grep -v current
if [ -d ~/.sdkman/candidates/$cmd[3]/current ]
ls -v1 ~/.sdkman/candidates/$cmd[3] | grep -v current
end
end
# # # # # #