style: gen.sh
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# check pb dir
|
||||
pb_dir="$(cd "$(dirname $0)";pwd)/../pb"
|
||||
pb_dir="$(
|
||||
cd "$(dirname $0)"
|
||||
pwd
|
||||
)/../pb"
|
||||
if [ ! -d $pb_dir ]; then
|
||||
echo "pb dir $pb_dir does not exist in grpc folder"
|
||||
exit
|
||||
@@ -22,8 +25,7 @@ cmd=protoc
|
||||
async_tag=""
|
||||
|
||||
# check all arguments
|
||||
for aug in $@
|
||||
do
|
||||
for aug in $@; do
|
||||
if [ $aug == "-a" ]; then
|
||||
async_tag="&"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user