From e1001f934942793788f8e0f1d81e432c012bd916 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Mon, 26 Feb 2018 11:21:23 -0800 Subject: [PATCH] build: fix compile pass Signed-off-by: Gyuho Lee --- build | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/build b/build index bf17a7ad4..9b3947e13 100755 --- a/build +++ b/build @@ -64,21 +64,20 @@ etcd_build() { tools_build() { out="bin" if [ -n "${BINDIR}" ]; then out="${BINDIR}"; fi - # shellcheck disable=SC2039 - tools=( - benchmark - etcd-dump-db - etcd-dump-logs - functional-tester/etcd-agent - functional-tester/etcd-tester - functional-tester/etcd-runner - local-tester/bridge - ) - # shellcheck disable=SC2039 - for tool in "${tools[@]}" + tools_path="benchmark + etcd-dump-db + etcd-dump-logs + functional-tester/etcd-agent + functional-tester/etcd-tester + functional-tester/etcd-runner + local-tester/bridge" + for tool in ${tools_path} do - # shellcheck disable=SC2086 - CGO_ENABLED=0 go build $GO_BUILD_FLAGS -installsuffix cgo -ldflags "$GO_LDFLAGS" -o "${out}/${tool}" "${REPO_PATH}/tools/${tool}" || return + echo "Building" "'${tool}'"... + CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} \ + -installsuffix cgo \ + -ldflags "${GO_LDFLAGS}" \ + -o "${out}/${tool}" "${REPO_PATH}/tools/${tool}" || return done }