argo-cd/hack/installers/install-protoc-linux.sh

11 lines
426 B
Bash
Raw Normal View History

2019-10-11 20:42:02 +00:00
#!/bin/bash
set -eux -o pipefail
. $(dirname $0)/../tool-versions.sh
[ -e $DOWNLOADS/protoc.zip ] || curl -sLf --retry 3 -o $DOWNLOADS/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v${protoc_version}/protoc-${protoc_version}-linux-x86_64.zip
2019-10-11 20:42:02 +00:00
unzip $DOWNLOADS/protoc.zip bin/protoc -d /usr/local/
chmod +x /usr/local/bin/protoc
unzip $DOWNLOADS/protoc.zip include/* -d /usr/local/
protoc --version