mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
updated to pass wflow checks eg thru lint etc
This commit is contained in:
parent
4a3e3d6ebd
commit
31884abdfb
@ -24,11 +24,20 @@ list_command() {
|
||||
|
||||
display_installed_versions() {
|
||||
local versions
|
||||
versions=$(list_installed_versions "$1")
|
||||
|
||||
local plugin
|
||||
local cver
|
||||
local flag
|
||||
|
||||
plugin=$1
|
||||
versions=$(list_installed_versions "$plugin")
|
||||
if [ -n "${versions}" ]; then
|
||||
cver=$(asdf current "$plugin" | cut -f 1 -d " ")
|
||||
for version in $versions; do
|
||||
echo " $version"
|
||||
flag=" "
|
||||
if [[ "$version" == "$cver" ]]; then
|
||||
flag=" *"
|
||||
fi
|
||||
echo "${flag}$version"
|
||||
done
|
||||
else
|
||||
display_error 'No versions installed'
|
||||
|
Loading…
Reference in New Issue
Block a user