Fixed the build script to work on Mac
@@ -27,11 +27,9 @@ gitHash="github.com/coreos/etcd-operator/version.GitSHA=${GIT_SHA}"
go_ldflags="-X ${ldKVPairs} -X ${gitHash}"
-GOBIN=${bin_dir} GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go install -installsuffix cgo -ldflags "$go_ldflags" ./cmd/operator/
-mv ${bin_dir}/operator ${bin_dir}/etcd-operator
+GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ${bin_dir}/etcd-operator -installsuffix cgo -ldflags "$go_ldflags" ./cmd/operator/
-GOBIN=${bin_dir} GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go install -installsuffix cgo -ldflags "$go_ldflags" ./cmd/backup/
-mv ${bin_dir}/backup ${bin_dir}/etcd-backup
+GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ${bin_dir}/etcd-backup -installsuffix cgo -ldflags "$go_ldflags" ./cmd/backup/
docker build --tag "${IMAGE}" -f hack/build/operator/Dockerfile . 1>/dev/null
# For gcr users, do "gcloud docker -a" to have access.
