only override the correct version for bundle gen

This commit is contained in:
mike seiler 2023-02-16 13:10:25 -07:00
parent 16b7d4525f
commit ea03e1b6e7

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"strings"
"text/template"
@ -56,7 +57,7 @@ func main() {
if len(os.Args) > 1 {
for _, m := range metadata {
override, ok := overrides[m.Network]
if ok {
if ok && strings.HasPrefix(override, fmt.Sprintf("v%d", m.Version)) {
m.BundleGitTag = override
} else {
m.BundleGitTag = os.Args[1]