Compare commits

...

1 commit

Author SHA1 Message Date
Sebastien Blot
fa5f58c086
properly strip the version based on whether it's a RC or not 2023-02-27 09:32:31 +01:00

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]
}