scripts: Don't erase gopath.proto after genproto.sh

Wiping gopath.proto after a successful run does nothing but slow down
the next run unnecessarily as it downloads everything again.
This commit is contained in:
Ben Darnell 2016-10-10 11:33:43 +08:00
parent 602fd6a67e
commit ef4e3ef55a

View File

@ -76,8 +76,6 @@ protoc -I. \
--swagger_out=logtostderr=true:./Documentation/dev-guide/apispec/swagger/. \
./etcdserver/etcdserverpb/rpc.proto
rm -rf ${PWD}/gopath.proto
# TODO: change this whenever we add more swagger API
mv \
Documentation/dev-guide/apispec/swagger/etcdserver/etcdserverpb/rpc.swagger.json \
@ -112,4 +110,3 @@ if [ "$1" = "-g" ]; then
else
echo "skipping grpc API reference document auto-generation..."
fi