Skip to content

Commit

Permalink
Make old behaviour default; optionally print plugin name.
Browse files Browse the repository at this point in the history
  • Loading branch information
toothbrush committed Jan 23, 2024
1 parent fc4defd commit 17bcafa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/functions/versions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ latest_command() {
fi
fi

printf "%s %s\n" "$plugin_name" "$versions"
with_version=$(get_asdf_config_value "version_with_plugin_name")
if [[ "$with_version" = "yes" ]]; then
printf "%s %s\n" "$plugin_name" "$versions"
else
printf "%s\n" "$versions"
fi
}

latest_all() {
Expand Down

0 comments on commit 17bcafa

Please sign in to comment.