Skip to content

Commit 9b71d2b

Browse files
authored
Fix variable resolution
1 parent 2114f1e commit 9b71d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resolve/resolve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,5 @@ func parseVersion(rawVersions string) []string {
131131
}
132132

133133
func variableVersionName(toolName string) string {
134-
return fmt.Sprintf("ASDF_%s_VERSION", strings.ToUpper(toolName))
134+
return fmt.Sprintf("ASDF_%s_VERSION", strings.ToUpper(strings.ReplaceAll(toolName, "-", "_")))
135135
}

0 commit comments

Comments
 (0)