properly strip the version based on whether it's a RC or not
This commit is contained in:
parent
01ea78c10e
commit
fa5f58c086
1 changed files with 6 additions and 1 deletions
|
@ -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]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue