Skip to content

Commit 4cb89b1

Browse files
author
Brennan Fee
authored
Fix another spot for plugin-name env var lookup
After fixing asdf-vm#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.
1 parent 67bc953 commit 4cb89b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ find_version() {
123123
version=$(get_version_from_env "$plugin_name")
124124
if [ -n "$version" ]; then
125125
local upcase_name
126-
upcase_name=$(echo "$plugin_name" | tr '[:lower:]' '[:upper:]')
126+
upcase_name=$(echo "$plugin_name" | tr '[:lower:]-' '[:upper:]_')
127127
local version_env_var="ASDF_${upcase_name}_VERSION"
128128

129129
echo "$version|$version_env_var environment variable"

0 commit comments

Comments
 (0)