From 15708ec1bb4138f42cde3e4953b241e4e10202fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sat, 12 Aug 2023 20:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91proto=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=97=B6=E6=8D=95=E6=8D=89=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/build.sh b/build/build.sh index 461e4e1..1bf27e6 100755 --- a/build/build.sh +++ b/build/build.sh @@ -4,6 +4,10 @@ echo "starting ..." #rm -f ../pkg/rpc/pb/*.pb.go protoc --go_out=../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/*.proto +RESULT=$? +if [ "${RESULT}" != "0" ]; then + exit +fi protoc --go-grpc_out=../pkg/rpc --go-grpc_opt=require_unimplemented_servers=false --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/*.proto RESULT=$?