summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2023-01-13 20:29:36 +0300
committerJulia Lawall <Julia.Lawall@inria.fr>2023-02-25 22:08:50 +0300
commit180da5ef84fba0a8ea06870a38d6d657d689944a (patch)
tree9bafc26177eed8582a4855f465e950f466980857 /scripts
parentbab550371cb13fe7adc4105a57d0530565740fc6 (diff)
downloadlinux-180da5ef84fba0a8ea06870a38d6d657d689944a.tar.xz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/coccicheck2
1 files changed, 1 insertions, 1 deletions
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'