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

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 {