outpost: fix default value for buildHash

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-06 23:07:23 +02:00
parent 7524e114d9
commit 70d72f340f
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,11 @@ import (
const VERSION = "2021.5.4"
func BUILD() string {
return os.Getenv("GIT_BUILD_HASH")
build := os.Getenv("GIT_BUILD_HASH")
if build == "" {
return "tagged"
}
return build
}
func UserAgent() string {