@@ -28,27 +28,27 @@ PROTOBUF_DIR=$(mktemp -d)
2828case $GOARCH in
2929
3030arm64)
31- wget -O $PROTOBUF_DIR /protobuf " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -linux-aarch64.zip"
32- unzip $PROTOBUF_DIR /protobuf -d /usr/local
31+ wget -O " $PROTOBUF_DIR /protobuf" " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -linux-aarch64.zip"
32+ unzip " $PROTOBUF_DIR /protobuf" -d /usr/local
3333 ;;
3434
3535amd64|386)
3636 if [ " $GOOS " = windows ]; then
37- wget -O $PROTOBUF_DIR /protobuf " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -win32.zip"
37+ wget -O " $PROTOBUF_DIR /protobuf" " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -win32.zip"
3838 elif [ " $GOOS " = linux ]; then
39- wget -O $PROTOBUF_DIR /protobuf " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -linux-x86_64.zip"
39+ wget -O " $PROTOBUF_DIR /protobuf" " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -linux-x86_64.zip"
4040 fi
41- unzip $PROTOBUF_DIR /protobuf -d /usr/local
41+ unzip " $PROTOBUF_DIR /protobuf" -d /usr/local
4242 ;;
4343
4444ppc64le)
45- wget -O $PROTOBUF_DIR /protobuf " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -linux-ppcle_64.zip"
46- unzip $PROTOBUF_DIR /protobuf -d /usr/local
45+ wget -O " $PROTOBUF_DIR /protobuf" " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protoc-$PROTOBUF_VERSION -linux-ppcle_64.zip"
46+ unzip " $PROTOBUF_DIR /protobuf" -d /usr/local
4747 ;;
4848* )
49- wget -O $PROTOBUF_DIR /protobuf " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protobuf-cpp-$PROTOBUF_VERSION .zip"
50- unzip $PROTOBUF_DIR /protobuf -d /usr/src/protobuf
51- cd /usr/src/protobuf/protobuf-$PROTOBUF_VERSION
49+ wget -O " $PROTOBUF_DIR /protobuf" " https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION /protobuf-cpp-$PROTOBUF_VERSION .zip"
50+ unzip " $PROTOBUF_DIR /protobuf" -d /usr/src/protobuf
51+ cd " /usr/src/protobuf/protobuf-$PROTOBUF_VERSION "
5252 ./autogen.sh
5353 ./configure --disable-shared
5454 make
@@ -57,4 +57,4 @@ ppc64le)
5757 ldconfig
5858 ;;
5959esac
60- rm -rf $PROTOBUF_DIR
60+ rm -rf " $PROTOBUF_DIR "
0 commit comments