Skip to content

Commit

Permalink
Fix using grep on directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Feb 19, 2021
1 parent 109fce7 commit 99f0ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-submodules.sh
Expand Up @@ -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
Expand Down

0 comments on commit 99f0ffa

Please sign in to comment.