Skip to content

Commit

Permalink
fix: made install_protoc.sh compatible with wget2 (#256)
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Pragliola <[email protected]>
  • Loading branch information
Al-Pragliola authored Aug 12, 2024
1 parent 869fb58 commit 86c3630
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/install_protoc.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash
set -euxo pipefail

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
SCRIPT_PARENT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/.." &> /dev/null && pwd )

VERSION="24.3"
OS="linux"
Expand All @@ -14,9 +14,9 @@ if [[ "$(uname -m)" == "arm"* ]]; then
ARCH="aarch_64"
fi

mkdir -p ${SCRIPT_DIR}/../bin
mkdir -p ${SCRIPT_PARENT_DIR}/bin

wget -q https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-${OS}-${ARCH}.zip -O ${SCRIPT_DIR}/../protoc.zip && \
unzip -qo ${SCRIPT_DIR}/../protoc.zip -d ${SCRIPT_DIR}/.. && \
wget -q https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-${OS}-${ARCH}.zip -O ${SCRIPT_PARENT_DIR}/protoc.zip && \
unzip -qo ${SCRIPT_PARENT_DIR}/protoc.zip -d ${SCRIPT_PARENT_DIR} && \
bin/protoc --version && \
rm ${SCRIPT_DIR}/../protoc.zip
rm ${SCRIPT_PARENT_DIR}/protoc.zip

0 comments on commit 86c3630

Please sign in to comment.