Skip to content

Commit 3a8c077

Browse files
committed
Fix grep command on LGTM_INDEX_FILTERS
1 parent 4e3be55 commit 3a8c077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractors/cds/tools/index-files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ else
8181
# If it is set, we will try to honour the paths-ignore filter
8282
# Split by \n and find all the entries that start with exclude, excluding "exclude:**/*" and "exclude:**/*.*"
8383
# and then join them back together with \n
84-
exclude_filters="\n$(grep '^exclude' "$LGTM_INDEX_FILTERS" | grep -v 'exclude:**/\*\|exclude:**/\*\.\*')"
84+
exclude_filters="\n$(echo "$LGTM_INDEX_FILTERS" | grep '^exclude' | grep -v 'exclude:**/\*\|exclude:**/\*\.\*')"
8585
fi
8686

8787
# Enable extraction of the cds.json files only

0 commit comments

Comments
 (0)