mirror of
https://github.com/safing/portbase
synced 2025-09-04 11:40:23 +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 {
|
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
|
return version
|
||||||
} else {
|
} else {
|
||||||
return version + "*"
|
return version + "*"
|
||||||
|
|
Loading…
Add table
Reference in a new issue