Fix another spot for plugin-name env var lookup

After fixing #319 I wondered if there were any other spots where the same/similar bug existed.  I found one other location at line 126 in utils.sh.
This commit is contained in:
Brennan Fee 2018-05-31 10:46:04 -05:00 committed by GitHub
parent 67bc9539d1
commit 4cb89b152c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ find_version() {
version=$(get_version_from_env "$plugin_name")
if [ -n "$version" ]; then
local upcase_name
upcase_name=$(echo "$plugin_name" | tr '[:lower:]' '[:upper:]')
upcase_name=$(echo "$plugin_name" | tr '[:lower:]-' '[:upper:]_')
local version_env_var="ASDF_${upcase_name}_VERSION"
echo "$version|$version_env_var environment variable"