#!/bin/bash FILENAME=$1 VERSION=$2 TAP_ROOT=$3 URL="https://developers.cloudflare.com/argo-tunnel/dl/cloudflared-${VERSION}-darwin-amd64.tgz" SHA256=$(sha256sum -b "${FILENAME}" | cut -b1-64) cd "${TAP_ROOT}" || exit 1 git checkout -f master git reset --hard origin/master tee cloudflared.rb <