]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
source-maintenance.sh: Fix checkMakeNamedErrorDetails on MacOS (#1885)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Sat, 17 Aug 2024 12:25:53 +0000 (12:25 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 19 Aug 2024 12:28:14 +0000 (12:28 +0000)
    'MakeNamedErrorDetail....*?...': repetition-operator operand invalid

"git grep --extended-regexp" does not support non-greedy sequences on
MacOS. Use an equivalent greedy sequence instead.

scripts/source-maintenance.sh

index 68946e0d7f054ecc9111f8faf73e40d626e9390b..bbe537c9bd7e69e5a2d60e65873efee82c656bf4 100755 (executable)
@@ -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