pre-commit hook: use most compatible grep flags

The minimal test suite runs on Alpine use busybox grep, and BSD grep also
often has different flags.
This commit is contained in:
Hans-Christoph Steiner 2018-05-28 09:44:57 +02:00
parent a87df29135
commit 8c4f75e05f

View file

@ -129,7 +129,7 @@ for f in $RB_FILES; do
fi
done
if grep --line-number 'shell=True' fdroidserver/[a-ce-z]*.py; then
if grep -C 3 'shell=True' fdroidserver/[a-ce-z]*.py; then
err "shell=True is too dangerous, there are unfiltered user inputs!"
fi