mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Fix version function
This commit is contained in:
parent
a4db87e6ce
commit
9a05c0a66c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ func GetInfo() *Info {
|
|||
}
|
||||
|
||||
func Version() string {
|
||||
if strings.HasPrefix(commit, fmt.Sprintf("v%s-0-", version)) {
|
||||
if strings.HasPrefix(commit, fmt.Sprintf("tags/v%s-0-", version)) {
|
||||
return version
|
||||
} else {
|
||||
return version + "*"
|
||||
|
|
Loading…
Add table
Reference in a new issue