mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Update get_tool_version_from_legacy_file function to check for script with dashes instead of underscores.
This commit is contained in:
parent
0a2ff4de5c
commit
d7542d9f8f
@ -135,8 +135,8 @@ get_tool_version_from_legacy_file() {
|
||||
local plugin_path=$(get_plugin_path $plugin_name)
|
||||
check_if_plugin_exists $plugin_path
|
||||
|
||||
if [ -f ${plugin_path}/bin/get_version_from_legacy_file ]; then
|
||||
local legacy_tool_version=$(bash ${plugin_path}/bin/get_version_from_legacy_file $(pwd))
|
||||
if [ -f ${plugin_path}/bin/get-version-from-legacy-file ]; then
|
||||
local legacy_tool_version=$(bash ${plugin_path}/bin/get-version-from-legacy-file $(pwd))
|
||||
fi
|
||||
|
||||
# Should return the version/tag/commit/branch/path
|
||||
|
Loading…
Reference in New Issue
Block a user