From: Peter Foley <pefoley2@pefoley.com>
Date: Fri, 13 Jan 2023 17:29:36 +0000 (-0500)
Subject: scripts: coccicheck: Avoid warning about spurious escape
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=180da5ef84fba0a8ea06870a38d6d657d689944a;p=linux.git

scripts: coccicheck: Avoid warning about spurious escape

e.g.
grep: warning: stray \ before -

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

diff --git a/scripts/coccicheck b/scripts/coccicheck
index 2956fce8fa4f..fb492f032c5f 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -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'