scripts: coccicheck: Avoid warning about spurious escape
authorPeter Foley <pefoley2@pefoley.com>
Fri, 13 Jan 2023 17:29:36 +0000 (12:29 -0500)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sat, 25 Feb 2023 19:08:50 +0000 (20:08 +0100)
e.g.
grep: warning: stray \ before -

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccicheck

index 2956fce..fb492f0 100755 (executable)
@@ -18,7 +18,7 @@ fi
 SPATCH_VERSION=$($SPATCH --version | head -1 | awk '{print $3}')
 
 USE_JOBS="no"
-$SPATCH --help | grep "\-\-jobs" > /dev/null && USE_JOBS="yes"
+$SPATCH --help | grep -e "--jobs" > /dev/null && USE_JOBS="yes"
 
 # The verbosity may be set by the environmental parameter V=
 # as for example with 'make V=1 coccicheck'