install-marker.sh 535 B

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