Update get_tool_version_from_legacy_file function to check for script with dashes instead of underscores.

This commit is contained in:
Trevor Brown 2015-11-29 12:09:39 -05:00
parent 0a2ff4de5c
commit d7542d9f8f

View File

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