Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detecting a string in bash with the pattern `echo "source text" | grep -q "string to match"` may have false negatives. Indeed, if the `grep -q` command finds its match early and exits successfully but quickly, the `echo` command will be killed by `SIGPIPE`, making the entire pipeline fail. Avoid this problem by replacing `echo` with heredoc strings. Partial commit for third_party/*, see #16788. Signed-off-by: Sunil Gowroji <sgowroji@google.com>
- Loading branch information