mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
script: fix build script regression to work on OSX
Use sed instead of cut to accomodate GNU and BSD differences Fixes: #5240
This commit is contained in:
parent
262de75a7e
commit
c071104fc4
2
build
2
build
@ -11,7 +11,7 @@ GIT_SHA=`git rev-parse --short HEAD || echo "GitNotFound"`
|
|||||||
|
|
||||||
LINK_OPERATOR="="
|
LINK_OPERATOR="="
|
||||||
|
|
||||||
host_arch=$(GOARCH="" go env | egrep 'GOARCH=' | cut --delimiter='"' --field=2)
|
host_arch=$(GOARCH="" go env | egrep 'GOARCH=' | sed 's/^GOARCH="\(.*\)".*/\1/')
|
||||||
|
|
||||||
if [ -z "${GOARCH}" ] || [ "${GOARCH}" = "${host_arch}" ]; then
|
if [ -z "${GOARCH}" ] || [ "${GOARCH}" = "${host_arch}" ]; then
|
||||||
out="bin"
|
out="bin"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user