Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3407231
D4721.id15229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
636 B
Referenced Files
None
Subscribers
None
D4721.id15229.diff
View Options
diff --git a/services/lib/docker/proto_codegen.sh b/services/lib/docker/proto_codegen.sh
--- a/services/lib/docker/proto_codegen.sh
+++ b/services/lib/docker/proto_codegen.sh
@@ -4,8 +4,8 @@
echo "generating files from protos..."
-for PROTO_FILE in $(ls ./protos); do
- protoc -I=./protos --cpp_out=_generated --grpc_out=_generated --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ./protos/$PROTO_FILE
+for PROTO_FILE in ./protos/*; do
+ protoc -I=./protos --cpp_out=_generated --grpc_out=_generated --plugin=protoc-gen-grpc="$(which grpc_cpp_plugin)" ./protos/"$PROTO_FILE"
done
echo "success - code generated from protos"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 5, 4:56 AM (14 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2616036
Default Alt Text
D4721.id15229.diff (636 B)
Attached To
Mode
D4721: [services] Clean up `proto_codegen.sh` using ShellCheck
Attached
Detach File
Event Timeline
Log In to Comment