Skip to content

Commit d205955

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 7e34552 commit d205955

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.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)