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