Skip to content

Commit 4e3be55

Browse files
committed
Correct inverted condition
1 parent 7544dbc commit 4e3be55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extractors/cds/tools/index-files.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ fi
7676
# Check if LGTM_INDEX_FILTERS is already set
7777
# This typically happens if "paths" or "paths-ignore" are set in the LGTM.yml file
7878
if [ -z "${LGTM_INDEX_FILTERS:-}" ]; then
79+
exclude_filters=""
80+
else
7981
# If it is set, we will try to honour the paths-ignore filter
8082
# Split by \n and find all the entries that start with exclude, excluding "exclude:**/*" and "exclude:**/*.*"
8183
# and then join them back together with \n
8284
exclude_filters="\n$(grep '^exclude' "$LGTM_INDEX_FILTERS" | grep -v 'exclude:**/\*\|exclude:**/\*\.\*')"
83-
else
84-
exclude_filters=""
8585
fi
8686

8787
# Enable extraction of the cds.json files only

0 commit comments

Comments
 (0)