Skip to content

Commit

Permalink
Remove readme.txt from zip
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans committed Jun 8, 2024
1 parent ab458c5 commit 222edaa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/install_protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 222edaa

Please sign in to comment.