From 86c3630bcb4cb7ba3ff36a57aafaab6045385077 Mon Sep 17 00:00:00 2001 From: Alessio Pragliola <83355398+Al-Pragliola@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:57:40 +0200 Subject: [PATCH] fix: made install_protoc.sh compatible with wget2 (#256) Signed-off-by: Alessio Pragliola --- scripts/install_protoc.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install_protoc.sh b/scripts/install_protoc.sh index b7b165e5f..3eec5d1c9 100755 --- a/scripts/install_protoc.sh +++ b/scripts/install_protoc.sh @@ -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" @@ -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