From 1992cc64c74367579fb587f0431bf4340401c38a Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sat, 3 Aug 2024 14:46:18 -0700 Subject: [PATCH] GH-43548: [R][CI] Use grep -F to simplify matching or rchk output (#43477) Passing along a minor change we made in our own mimeo of this GHA. Resolves #43548 * GitHub Issue: #43548 Authored-by: Michael Chirico Signed-off-by: Jonathan Keane --- dev/tasks/r/github.linux.rchk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tasks/r/github.linux.rchk.yml b/dev/tasks/r/github.linux.rchk.yml index a673304ff238d..65c17ae751290 100644 --- a/dev/tasks/r/github.linux.rchk.yml +++ b/dev/tasks/r/github.linux.rchk.yml @@ -54,7 +54,7 @@ jobs: # ERROR: too many states (abstraction error?)) # https://github.com/kalibera/rchk run: | - if [ $(grep -c "Suspicious call" rchk.out) -gt 0 ] || [ $(grep -c "\[UP\]" rchk.out) -gt 0 ] || [ $(grep -c "\[PB\]" rchk.out) -gt 0 ]; then + if [ $(grep -Fc "Suspicious call" rchk.out) -gt 0 ] || [ $(grep -Fc "[UP]" rchk.out) -gt 0 ] || [ $(grep -Fc "[PB]" rchk.out) -gt 0 ]; then echo "Found rchk errors" cat rchk.out exit 1