From 222edaa9c48eb969ba6796cc76c68d09555423dd Mon Sep 17 00:00:00 2001 From: Abhishek Ranjan Date: Sat, 8 Jun 2024 15:04:09 +0530 Subject: [PATCH] Remove readme.txt from zip --- scripts/install_protoc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install_protoc.sh b/scripts/install_protoc.sh index 08761fd49713..29b8635b077f 100755 --- a/scripts/install_protoc.sh +++ b/scripts/install_protoc.sh @@ -44,9 +44,12 @@ download_binary() { DOWNLOAD_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-$2-$1.zip" # Download and unzip curl -LO "$DOWNLOAD_URL" - INSTALL_DIR="${3:-${GOBIN:-${GOPATH:-$HOME/go}/bin}}" + INSTALL_DIR="${3:-${GOBIN:-${GOPATH:-$HOME/go}}}" + echo "INSTALL DIR: ${INSTALL_DIR}" unzip "protoc-${PROTOC_VERSION}-$2-$1.zip" -d $INSTALL_DIR rm "protoc-${PROTOC_VERSION}-$2-$1.zip" + rm "${INSTALL_DIR}/readme.txt" + ls "${INSTALL_DIR}" } # Detect the architecture