fix co+ bug
This commit is contained in:
parent
77262d1527
commit
d561868a76
4
main.go
4
main.go
@ -143,8 +143,8 @@ func addGitTag(args []string) bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(os.Args) > 2 {
|
if len(args) > 0 {
|
||||||
newVer = os.Args[2]
|
newVer = args[0]
|
||||||
} else {
|
} else {
|
||||||
versionParts := strings.Split(oldVer, ".")
|
versionParts := strings.Split(oldVer, ".")
|
||||||
v, err := strconv.Atoi(versionParts[len(versionParts)-1])
|
v, err := strconv.Atoi(versionParts[len(versionParts)-1])
|
||||||
|
Loading…
Reference in New Issue
Block a user