mirror of
https://github.com/mii443/merkle.rs.git
synced 2025-08-22 16:05:30 +00:00
Fix install_protobuf.sh script
This commit is contained in:
@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
PROTOC_VERSION=$(cat "$(dirname "$(dirname "$0")")/PROTOC_VERSION")
|
|
||||||
|
|
||||||
check_protoc_version () {
|
check_protoc_version () {
|
||||||
this_version=$(protoc --version)
|
this_version=$(protoc --version)
|
||||||
return $([ "libprotoc $PROTOC_VERSION" = "$this_version" ])
|
return $([ "libprotoc $PROTOC_VERSION" = "$this_version" ])
|
||||||
@ -17,6 +15,6 @@ echo "[INFO] Installing protobuf $PROTOC_VERSION to $HOME/protobuf..."
|
|||||||
|
|
||||||
cd "$TMPDIR"
|
cd "$TMPDIR"
|
||||||
wget "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip"
|
wget "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip"
|
||||||
unzip -d "$HOME/protobuf" "protoc-$PROTOC_VERSION-linux-x86_64.zip"
|
unzip -o -d "$HOME/protobuf" "protoc-$PROTOC_VERSION-linux-x86_64.zip"
|
||||||
|
|
||||||
echo "[SUCCESS] Done."
|
echo "[SUCCESS] Done."
|
||||||
|
Reference in New Issue
Block a user