properly strip the version based on whether it's a RC or not

This commit is contained in:
Sebastien Blot 2023-02-27 09:32:31 +01:00
parent 01ea78c10e
commit fa5f58c086
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -63,7 +63,12 @@ func VersionStr() string {
}
func VersionStrip() string {
version := strings.Split(Version, "~")
if strings.Contains(Version, "~") {
//This is a RC
version := strings.Split(Version, "~")
return version[0]
}
version := strings.Split(Version, "-")
return version[0]
}