We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
grep -c
1 parent 655ed4b commit 1c11fd2Copy full SHA for 1c11fd2
bin/find-in-jars
@@ -314,7 +314,7 @@ __outputResultOfJarFile() {
314
# - https://stackoverflow.com/questions/19120263/why-exit-code-141-with-grep-q
315
# - https://unix.stackexchange.com/questions/305547/broken-pipe-when-grepping-output-but-only-with-i-flag
316
# - http://www.pixelbeat.org/programming/sigpipe_handling.html
317
- if grep $regex_mode ${ignore_case_option:-} -- "$pattern" &>/dev/null; then
+ if grep $regex_mode ${ignore_case_option:-} -c -- "$pattern" &>/dev/null; then
318
matched=true
319
fi
320
0 commit comments