Skip to content

Commit 67f8baf

Browse files
cpcloudclaude
andcommitted
style: use herestring instead of echo pipe in has_match
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0a5f344 commit 67f8baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
changed=$(git diff --name-only "$base"...HEAD)
120120
121121
has_match() {
122-
echo "$changed" | grep -qE "$1" && echo true || echo false
122+
grep -qE "$1" <<< "$changed" && echo true || echo false
123123
}
124124
125125
{

0 commit comments

Comments
 (0)