We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99eb430 commit 89e97d6Copy full SHA for 89e97d6
scripts/protoc-generator.sh
@@ -69,8 +69,8 @@ typescript_protoc() {
69
-I /usr/lib/protoc/include -I"$ROOT_DIR" -I.. -I"../$PROTO_DIR" \
70
"../$PROTO_DIR"/*.proto
71
72
- # shellcheck disable=SC2011
73
- # ls -1 "$MODULE_DIR"/typescript/src/*_pb.d.ts | xargs sed -i -e "s/[[:space:]]*$//" || exit
+ # remove trailing spaces
+ find "$MODULE_DIR"/typescript/src -maxdepth 1 -name "*_pb.d.ts" -exec sed -i -e "s/[[:space:]]*$//" {} \;
74
75
popd > /dev/null || exit
76
}
0 commit comments