Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3407272
D4721.id15231.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
629 B
Referenced Files
None
Subscribers
None
D4721.id15231.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)" ./"$PROTO_FILE"
done
echo "success - code generated from protos"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 5, 5:20 AM (15 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614512
Default Alt Text
D4721.id15231.diff (629 B)
Attached To
Mode
D4721: [services] Clean up `proto_codegen.sh` using ShellCheck
Attached
Detach File
Event Timeline
Log In to Comment