summaryrefslogtreecommitdiff
path: root/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'version.go')
-rw-r--r--version.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/version.go b/version.go
index 6562d6c..498a623 100644
--- a/version.go
+++ b/version.go
@@ -3,6 +3,7 @@ package main
import (
_ "embed"
"log"
+ "strings"
)
//go:embed VERSION.txt
@@ -12,4 +13,6 @@ func init() {
if version == "" {
log.Fatal("Bad build: No version string embedded.")
}
+
+ version = strings.Trim(version, "\n")
}