diff --git a/get-install.sh b/get-install.sh new file mode 100755 index 000000000..bb3477fbd --- /dev/null +++ b/get-install.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +set -euo pipefail + +PLATFORM=$(uname | tr '[:upper:]' '[:lower:]') +ARCH=$(uname -m) + +STORAGE_URL=http://get-dm.storage.googleapis.com +ZIP=dm-latest-${PLATFORM}-${ARCH}.zip + +echo "Downloading ${ZIP}..." +curl -Ls "${STORAGE_URL}/${ZIP}" -O + +unzip -qo ${ZIP} +rm ${ZIP} + +chmod +x dm + +cat <