Skip to content

Commit

Permalink
source-maintenance.sh: portability improvements
Browse files Browse the repository at this point in the history
git grep does not support non-greedy sequences on MacOS.
Use a greedy sequence in MakeNamedErrorDetail instead
  • Loading branch information
kinkie committed Aug 17, 2024
1 parent b8a3f05 commit 887fcea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/source-maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ checkMakeNamedErrorDetails ()
problems=1 # assume there are problems until proven otherwise

options='-h --only-matching --extended-regexp'
git grep $options 'MakeNamedErrorDetail[(]".*?"[)]' src |
git grep $options 'MakeNamedErrorDetail[(]"[^"]*"[)]' src |
sort |
uniq --count > \
MakeNamedErrorDetail.tmp
Expand Down

0 comments on commit 887fcea

Please sign in to comment.