updated to pass wflow checks eg thru lint etc

This commit is contained in:
botp 2020-07-12 18:58:51 +08:00
parent 4a3e3d6ebd
commit 31884abdfb

View File

@ -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'