diff --git a/build.sh b/build.sh index a429b932..83ea2366 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,8 @@ distFiles=(README.md LICENSE) # apart from the binary itself version=$(git describe --always --dirty) date=$(date +%s) user=$(whoami) -host=$(hostname -s) +host=$(hostname) +host=${host%%.*} ldflags="-w -X main.Version $version -X main.BuildStamp $date -X main.BuildUser $user -X main.BuildHost $host" build() {