mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
build: Fix tag calculate
This commit is contained in:
parent
0a06ccae50
commit
267d9617b7
|
@ -17,9 +17,6 @@ func ReadTag() (string, error) {
|
|||
}
|
||||
shortCommit, _ := shell.Exec("git", "rev-parse", "--short", "HEAD").ReadOutput()
|
||||
version := badversion.Parse(currentTagRev[1:])
|
||||
if version.PreReleaseIdentifier == "" {
|
||||
version.Patch++
|
||||
}
|
||||
return version.String() + "-" + shortCommit, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue