diff options
Diffstat (limited to 'scripts/cve_review')
-rwxr-xr-x | scripts/cve_review | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/cve_review b/scripts/cve_review index 6fcc7124a..783ec951c 100755 --- a/scripts/cve_review +++ b/scripts/cve_review @@ -236,6 +236,7 @@ locking[-\s_]dependency[-\s_]detected\ cat ${commitfile} | GREP_COLORS="ms=01;32" grep -C99999 --color=always -Pi "${GOODMATCHES}" > ${commitfile0} || true cat ${commitmsgfile0} | grep -C99999 --color=always -Pi "${BADMATCHES}" > ${commitfile} || true + regexhits=$(cat ${commitmsgfile} | grep -Pio "${BADMATCHES}" | wc -l) if [ ! -s ${commitfile} ]; then cat ${commitfile0} > ${commitfile} @@ -294,6 +295,13 @@ locking[-\s_]dependency[-\s_]detected\ grep -Fl "${subject}" ${FINALDIR}/* | sed 's!'"${FINALDIR}/"'! !' clipcommitto=$((clipcommitto- ${hits} - 3)) echo + else + if [ ${regexhits} == 0 ]; then + print_red "No regex hits and no positive reviews" + echo "${oneline}" >> ${PROCESSEDFILE} + sleep 0.5 + continue + fi fi print_blue "Summary:\n" |