mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
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:
parent
2a51c81345
commit
c8a1208c51
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
# # # # # #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue