diff options
author | Jakob Borg <jakob@nym.se> | 2014-04-22 08:25:40 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-04-22 08:25:40 +0200 |
commit | 53cd8778999d1dfad0870a4d09dbf5f981695505 (patch) | |
tree | 7d872320cedfb693213803ecb4cfb32bda6ca512 /build.sh | |
parent | 1207223f3d05f9a16bf825c5d41b58857c5dcf9f (diff) |
More portable hostname
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() { |