From 2acba1bc73eba800e29a833f85f18f337e465213 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Fri, 10 Jul 2020 17:32:30 +0200 Subject: [PATCH] Fix install_protobuf.sh script --- ci/install_protobuf.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ci/install_protobuf.sh b/ci/install_protobuf.sh index 9476d45..9b14c31 100755 --- a/ci/install_protobuf.sh +++ b/ci/install_protobuf.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -e -PROTOC_VERSION=$(cat "$(dirname "$(dirname "$0")")/PROTOC_VERSION") - check_protoc_version () { this_version=$(protoc --version) return $([ "libprotoc $PROTOC_VERSION" = "$this_version" ]) @@ -17,6 +15,6 @@ echo "[INFO] Installing protobuf $PROTOC_VERSION to $HOME/protobuf..." cd "$TMPDIR" 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."