From 9ca71fb1a51741e7d29e798efacaf32f6913a26a Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Sep 29 2022 08:35:56 +0000 Subject: scripts/CKC: don't output from shopt shopt outputs the status of the flag, so that git grep looks like: git grep -qi 'nocasematch off ^References:.*bsc#1202195' remotes/origin/SLE15-SP2-RT -- 'patches.*' I don't know how it can work (it does -- maybe thanks to ^), but it's not definitely OK. So make shopt in term2regex() quiet. --- diff --git a/scripts/check-kernel-commit b/scripts/check-kernel-commit index 13dc675..45a0a6e 100755 --- a/scripts/check-kernel-commit +++ b/scripts/check-kernel-commit @@ -46,7 +46,7 @@ KBC_CHECK_TERMS="$*" term2regex() { - shopt nocasematch + shopt -q nocasematch local t=$1 case $t in # CVEs first