1#!/usr/bin/env bash 2 3set -e 4 5ARCH=$1 6 7if [ -z "$1" ]; then 8 echo "Usage: ${0} [amd64 or darwin], defaulting to 'amd64'" >> /dev/stderr 9 ARCH=amd64 10fi 11 12MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-unknown-linux-gnu 13if [ ${ARCH} == "darwin" ]; then 14 MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-apple-darwin 15fi 16 17echo "Installing marker" 18curl -L "${MARKER_URL}" -o "${GOPATH}"/bin/marker 19chmod 755 "${GOPATH}"/bin/marker 20 21"${GOPATH}"/bin/marker --version 22