]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
delta: fix grep patterns after white space edits
authorDaniel Stenberg <daniel@haxx.se>
Tue, 30 Dec 2025 13:04:10 +0000 (14:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 Dec 2025 13:04:10 +0000 (14:04 +0100)
To make the command line option counter work again

Follow-up to 308c347c8b

scripts/delta

index c67d98a2c3d42465eaec1755d54d934cb5004c23..f34525ca8dfa65c296362fd6aa174eba15b0c6af 100755 (executable)
@@ -82,8 +82,8 @@ my $bsetopts = setopts("git show $start:include/curl/curl.h|");
 my $nsetopts = $asetopts - $bsetopts;
 
 # Number of command line options:
-my $aoptions=`grep -c '{"....--' src/tool_listhelp.c`;
-my $boptions=`git show $start:src/tool_listhelp.c 2>/dev/null | grep -c '{"....--'`;
+my $aoptions=`grep -c '{ *"....--' src/tool_listhelp.c`;
+my $boptions=`git show $start:src/tool_listhelp.c 2>/dev/null | grep -c '{ *"....--'`;
 my $noptions=$aoptions - $boptions;
 
 # current local branch