only override the correct version for bundle gen
This commit is contained in:
parent
16b7d4525f
commit
ea03e1b6e7
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
@ -56,7 +57,7 @@ func main() {
|
|||||||
if len(os.Args) > 1 {
|
if len(os.Args) > 1 {
|
||||||
for _, m := range metadata {
|
for _, m := range metadata {
|
||||||
override, ok := overrides[m.Network]
|
override, ok := overrides[m.Network]
|
||||||
if ok {
|
if ok && strings.HasPrefix(override, fmt.Sprintf("v%d", m.Version)) {
|
||||||
m.BundleGitTag = override
|
m.BundleGitTag = override
|
||||||
} else {
|
} else {
|
||||||
m.BundleGitTag = os.Args[1]
|
m.BundleGitTag = os.Args[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user