Skip to content

Commit

Permalink
Replace readarray -> while read
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Sep 10, 2020
1 parent 73a3b8e commit 16fc775
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/proto_format/proto_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ bazel build "${BAZEL_BUILD_OPTIONS[@]}" --//tools/api_proto_plugin:default_type_
@envoy_api_canonical//versioning:active_protos --aspects //tools/protoxform:protoxform.bzl%protoxform_aspect --output_groups=proto

# Find all source protos.
readarray -t PROTO_TARGETS \
< <(bazel query "labels(srcs, labels(deps, @envoy_api_canonical//versioning:active_protos))")
readarray -t -O "${#PROTO_TARGETS[@]}" PROTO_TARGETS \
< <(bazel query "labels(srcs, labels(deps, @envoy_api_canonical//versioning:frozen_protos))")
while read line; do PROTO_TARGETS+=("$line"); done \
< <(bazel query "labels(srcs, labels(deps, @envoy_api_canonical//versioning:active_protos))")
while read line; do PROTO_TARGETS+=("$line"); done \
< <(bazel query "labels(srcs, labels(deps, @envoy_api_canonical//versioning:frozen_protos))")

# Setup for proto_sync.py.
TOOLS="$(dirname "$(dirname "$(realpath "$0")")")"
Expand Down

0 comments on commit 16fc775

Please sign in to comment.