From 609f65626ca1e5689c3bbc450d4a2ce9e467731a Mon Sep 17 00:00:00 2001 From: Nex Date: Tue, 7 Apr 2020 22:21:55 +0800 Subject: [PATCH] Update scripts --- grpc/scripts/gen.bat | 1 - grpc/scripts/gen.sh | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/grpc/scripts/gen.bat b/grpc/scripts/gen.bat index 3841557..25d5565 100644 --- a/grpc/scripts/gen.bat +++ b/grpc/scripts/gen.bat @@ -5,7 +5,6 @@ cd /d "%~dp0..\pb" where /q protoc || echo Missing protoc && exit /b set gen=..\gen set pbs=bdware/bdledger/api/*.proto -REM set protos=%pkg%/common.proto %pkg%/error_details.proto %pkg%/node.proto %pkg%/ledger.proto %pkg%/query.proto %pkg%/contract.proto for %%A in (%*) do ( if "%%A"=="go" ( diff --git a/grpc/scripts/gen.sh b/grpc/scripts/gen.sh index 69612a0..a184788 100644 --- a/grpc/scripts/gen.sh +++ b/grpc/scripts/gen.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash -cd "${0%/*}/.." +cd "${0%/*}/.." || exit +gen=..\gen +pbs='bdware/bdledger/api/*.proto' # TODO