From 4cb89b152c8cfe36edeff3d8b05da83ec4690314 Mon Sep 17 00:00:00 2001 From: Brennan Fee Date: Thu, 31 May 2018 10:46:04 -0500 Subject: [PATCH] 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. --- lib/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.sh b/lib/utils.sh index f6e9ff9c..104eb034 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -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"