Update version string
Only add the commit hash to the version string if the AppVersion is set to canary. See #997 Signed-off-by: Luke Mallon (Nalum) <luke@mallon.io>
This commit is contained in:
parent
d8e652c48e
commit
c4fc6d7373
@ -18,6 +18,7 @@ package util
|
||||
|
||||
import "fmt"
|
||||
|
||||
// This variable block holds information used to build up the version string
|
||||
var (
|
||||
AppGitState = ""
|
||||
AppGitCommit = ""
|
||||
@ -26,7 +27,7 @@ var (
|
||||
|
||||
func version() string {
|
||||
v := AppVersion
|
||||
if AppGitCommit != "" {
|
||||
if AppVersion == "canary" && AppGitCommit != "" {
|
||||
v += "-" + AppGitCommit
|
||||
}
|
||||
if AppGitState != "" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user