mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 22:27:17 +02:00
scripts: drop -f from hostname, openbsd does not support it
This commit is contained in:
parent
8d2a73aff0
commit
53777e7bc4
@ -20,7 +20,7 @@ repo_path="github.com/prometheus/prometheus"
|
|||||||
version=$( cat version/VERSION )
|
version=$( cat version/VERSION )
|
||||||
revision=$( git rev-parse --short HEAD 2> /dev/null || echo 'unknown' )
|
revision=$( git rev-parse --short HEAD 2> /dev/null || echo 'unknown' )
|
||||||
branch=$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'unknown' )
|
branch=$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'unknown' )
|
||||||
host=$( hostname -f )
|
host=$( hostname )
|
||||||
build_date=$( date +%Y%m%d-%H:%M:%S )
|
build_date=$( date +%Y%m%d-%H:%M:%S )
|
||||||
go_version=$( go version | sed -e 's/^[^0-9.]*\([0-9.]*\).*/\1/' )
|
go_version=$( go version | sed -e 's/^[^0-9.]*\([0-9.]*\).*/\1/' )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user