Commit 644417e
style: standardize error suppression pattern in test-agent-trigger.sh
Standardize the error suppression pattern for grep -c operations
to consistently use `2>/dev/null || echo 0`.
Changed line 73 to match the pattern used on lines 171, 181, 191.
This ensures consistent behavior when grep finds no matches
(which returns exit code 1).
Before:
EXAMPLE_COUNT=$(... | grep -c '<example>' || echo 0)
After:
EXAMPLE_COUNT=$(... | grep -c '<example>' 2>/dev/null || echo 0)1 parent 19468ec commit 644417e
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments