mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
More portable hostname
This commit is contained in:
parent
1207223f3d
commit
53cd877899
3
build.sh
3
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user