Skip to content

Instantly share code, notes, and snippets.

@musaprg
Created April 16, 2019 06:20
Show Gist options
  • Save musaprg/57aaffdd1cf3c606e6722738af2e78d4 to your computer and use it in GitHub Desktop.
Save musaprg/57aaffdd1cf3c606e6722738af2e78d4 to your computer and use it in GitHub Desktop.
最新のprotocバイナリを落として/usr/local/binに置くスクリプト
curl -s https://api.github.com/repos/protocolbuffers/protobuf/releases/latest \
| grep "browser_download_url" \
| grep -E "protoc-[0-9.]+-linux-x86_64.zip" \
| cut -f 4 -d '"' \
| xargs -n1 curl -L -sS > protoc.zip && \
unzip protoc.zip && \
mv bin/protoc /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment