Skip to content

Commit

Permalink
fix(#275): replace regex with grep
Browse files Browse the repository at this point in the history
  • Loading branch information
slry committed Jun 9, 2024
1 parent a5dd1c8 commit 01d1e9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/copyright_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ jobs:
# Skip files in the ignore list
skip_file=false
for ignore_pattern in "${ignore_files[@]}"; do
# shellcheck disable=SC2254
if [[ "$file" == $ignore_pattern ]]; then
if echo "$file" | grep -qE "$ignore_pattern"; then
skip_file=true
break
fi
Expand Down

0 comments on commit 01d1e9a

Please sign in to comment.