]> Git Repo - J-linux.git/commitdiff
scripts: coccicheck: Avoid warning about spurious escape
authorPeter Foley <[email protected]>
Fri, 13 Jan 2023 17:29:36 +0000 (12:29 -0500)
committerJulia Lawall <[email protected]>
Sat, 25 Feb 2023 19:08:50 +0000 (20:08 +0100)
e.g.
grep: warning: stray \ before -

Signed-off-by: Peter Foley <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
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'
This page took 0.048137 seconds and 4 git commands to generate.