fix co+ bug

This commit is contained in:
Star 2024-07-04 18:04:30 +08:00
parent 77262d1527
commit d561868a76

View File

@ -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])