diff --git a/main.go b/main.go index 7bb0ab828..b0d9f9a40 100644 --- a/main.go +++ b/main.go @@ -51,8 +51,9 @@ func main() { } else { config.GitCommit = time.Now().Format("20060102") } - config.BuildPlatform = BuildPlatform - + if BuildPlatform != "" { + config.BuildPlatform = BuildPlatform + } log.Infoln(config.GetReleaseString()) // Allows a user to restore a specific database backup