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