diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-05 09:27:24 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-05 09:27:24 -0400 |
commit | b144ac103607bb716f7ea340b28498b47b77af9f (patch) | |
tree | 816473caffb28b57a41c4b4f1ba246d30c61659b /model/version.go | |
parent | 44ceedc2ad2ea193cedb71865931dcdc1624ed2b (diff) | |
parent | e0743a6a2bee391efafa2b5c5c0fa3e8a3d2ee27 (diff) | |
download | chat-b144ac103607bb716f7ea340b28498b47b77af9f.tar.gz chat-b144ac103607bb716f7ea340b28498b47b77af9f.tar.bz2 chat-b144ac103607bb716f7ea340b28498b47b77af9f.zip |
Merge pull request #900 from mattermost/PLT-462
PLT-462 Adding diagnostic info
Diffstat (limited to 'model/version.go')
-rw-r--r-- | model/version.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/model/version.go b/model/version.go index 233fc3747..efa1697db 100644 --- a/model/version.go +++ b/model/version.go @@ -67,6 +67,10 @@ func GetPreviousVersion(currentVersion string) (int64, int64) { return 0, 0 } +func IsOfficalBuild() bool { + return BuildNumber != "_BUILD_NUMBER_" +} + func IsCurrentVersion(versionToCheck string) bool { currentMajor, currentMinor, _ := SplitVersion(CurrentVersion) toCheckMajor, toCheckMinor, _ := SplitVersion(versionToCheck) |