From 22dfc68ade88a8d6d177f6c352fd60d86cd53929 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Mon, 11 Jul 2022 15:01:21 -0700 Subject: [PATCH] Fix protobuf script to install protobuf on darwin Signed-off-by: Maksym Pavlenko --- script/setup/install-protobuf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/setup/install-protobuf b/script/setup/install-protobuf index 81e7a4a63..65973d331 100755 --- a/script/setup/install-protobuf +++ b/script/setup/install-protobuf @@ -37,6 +37,8 @@ amd64|386) wget -O "$PROTOBUF_DIR/protobuf" "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-win32.zip" elif [ "$GOOS" = linux ]; then wget -O "$PROTOBUF_DIR/protobuf" "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-linux-x86_64.zip" + elif [ "$GOOS" == darwin ]; then + wget -O "$PROTOBUF_DIR/protobuf" "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-osx-x86_64.zip" fi unzip "$PROTOBUF_DIR/protobuf" -d /usr/local ;;