Created
April 16, 2019 06:20
-
-
Save musaprg/57aaffdd1cf3c606e6722738af2e78d4 to your computer and use it in GitHub Desktop.
最新のprotocバイナリを落として/usr/local/binに置くスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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