From b231bb3bad41e728a3244beb35a0948882c3d4dc Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Fri, 19 Feb 2021 18:57:33 +0100 Subject: [PATCH] Fix using grep command on directory --- check-submodules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-submodules.sh b/check-submodules.sh index 550d6fc32..27d91805c 100755 --- a/check-submodules.sh +++ b/check-submodules.sh @@ -63,7 +63,7 @@ if [ "$(ls -A $COMPARE)" ]; then for METRIC in "${METRICS[@]}" do - FILES=`grep -i -l $METRIC $COMPARE/* | head -$MT_THRESHOLD` + FILES=`grep -r -i -l $METRIC $COMPARE | head -$MT_THRESHOLD` if [ ${#FILES[@]} -ne 0 ] then mkdir -p $OUTPUT_DIR/$METRIC