https://github.com/etcd-io/etcd
Revision 946a5a6f25c3b6b89408ab447852731bde6e6289 authored by Sam Batschelet on 15 June 2021, 21:34:52 UTC, committed by Sam Batschelet on 15 June 2021, 21:34:52 UTC
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
1 parent 1e2cab9
Raw File
Tip revision: 946a5a6f25c3b6b89408ab447852731bde6e6289 authored by Sam Batschelet on 15 June 2021, 21:34:52 UTC
version: 3.5.0
Tip revision: 946a5a6
install-marker.sh
#!/usr/bin/env bash

set -e

ARCH=$1

if [ -z "$1" ]; then
    echo "Usage: ${0} [amd64 or darwin], defaulting to 'amd64'" >> /dev/stderr
    ARCH=amd64
fi

MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-unknown-linux-gnu
if [ ${ARCH} == "darwin" ]; then
    MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-apple-darwin
fi

echo "Installing marker"
curl -L "${MARKER_URL}" -o "${GOPATH}"/bin/marker
chmod 755 "${GOPATH}"/bin/marker

"${GOPATH}"/bin/marker --version
back to top