Skip to content

Commit

Permalink
Ensure bin directory exists for protoc install
Browse files Browse the repository at this point in the history
Co-authored-by: James Blair <[email protected]>
Signed-off-by: = <[email protected]>
  • Loading branch information
iiamabby and jmhbnz committed Jan 4, 2024
1 parent b103d46 commit dbfacb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ if [[ $(protoc --version | cut -f2 -d' ') != "3.20.3" ]]; then

download_url="https://github.com/protocolbuffers/protobuf/releases/download/v3.20.3/protoc-3.20.3-linux-${file}.zip"
echo "Running on ${arch}."
mkdir -p bin
wget ${download_url} && unzip -p protoc-3.20.3-linux-${file}.zip bin/protoc > tmpFile && mv tmpFile bin/protoc
rm protoc-3.20.3-linux-${file}.zip
chmod +x bin/protoc
Expand Down

0 comments on commit dbfacb4

Please sign in to comment.