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 2956fce8fa4fc82fd941e7785e742d526ad142c2..fb492f032c5fe7f8cacb0aa14dc041b7c5adb3c7 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'