mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Fix version tag recognition
This commit is contained in:
parent
15ea65a61d
commit
cc4e2aa6eb
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ func Version() string {
|
|||
|
||||
func FullVersion() string {
|
||||
s := ""
|
||||
if strings.HasPrefix(commit, fmt.Sprintf("v%s-0-", version)) {
|
||||
if strings.HasPrefix(commit, fmt.Sprintf("tags/v%s-0-", version)) {
|
||||
s += fmt.Sprintf("%s\nversion %s\n", name, version)
|
||||
} else {
|
||||
s += fmt.Sprintf("%s\ndevelopment build, built on top version %s\n", name, version)
|
||||
|
|
Loading…
Add table
Reference in a new issue