mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
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:
parent
67bc9539d1
commit
4cb89b152c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user