#!/usr/bin/env bash set -euo pipefail set -x cd "$1" MACH=$(uname -m) MACH="${MACH/aarch64/aarch_64}" VERSION=28.0 FILENAME=protoc-"$VERSION"-linux-"$MACH".zip if [ -e "$FILENAME" ]; then echo "$FILENAME" already exists 1>&2 exit 1 fi wget --continue https://github.com/protocolbuffers/protobuf/releases/download/v"$VERSION"/"$FILENAME" stat "$FILENAME" sha256sum -c --ignore-missing <