scripts/delta: hide a git error message we don't care about

fatal: path 'src/tool_listhelp.c' exists on disk, but not in [tag]
This commit is contained in:
Daniel Stenberg 2021-10-02 23:36:00 +02:00
parent 3e2c1dcda8
commit 343644fc32
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -63,7 +63,7 @@ $nsetopts = $asetopts - $bsetopts;
# Number of command line options:
$aoptions=`grep -c '{"....--' src/tool_listhelp.c`;
$boptions=`git show $start:src/tool_listhelp.c | grep -c '{"....--'`;
$boptions=`git show $start:src/tool_listhelp.c 2>/dev/null | grep -c '{"....--'`;
$noptions=$aoptions - $boptions;
# Number of files in git