Skip to content

Commit

Permalink
Fix using grep command on directory (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Feb 19, 2021
1 parent 741c3b7 commit f7fa8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-submodules.sh
Original file line number Diff line number Diff line change
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 f7fa8f2

Please sign in to comment.