Skip to content

Commit 3701318

Browse files
committed
Fixup quoting of newlines
1 parent 41fec32 commit 3701318

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
@@ -78,11 +78,11 @@ fi
7878
if [ -z "${LGTM_INDEX_FILTERS:-}" ]; then
7979
exclude_filters=""
8080
else
81-
echo "Found \$LGTM_INDEX_FILTERS already set to:\n$LGTM_INDEX_FILTERS"
81+
echo $'Found \$LGTM_INDEX_FILTERS already set to:\n'"$LGTM_INDEX_FILTERS"
8282
# If it is set, we will try to honour the paths-ignore filter
8383
# Split by \n and find all the entries that start with exclude, excluding "exclude:**/*" and "exclude:**/*.*"
8484
# and then join them back together with \n
85-
exclude_filters="\n$(echo "$LGTM_INDEX_FILTERS" | grep '^exclude' | grep -v 'exclude:\*\*/\*\|exclude:\*\*/\*\.\*')"
85+
exclude_filters=$'\n'"$(echo "$LGTM_INDEX_FILTERS" | grep '^exclude' | grep -v 'exclude:\*\*/\*\|exclude:\*\*/\*\.\*')"
8686
fi
8787

8888
# Enable extraction of the cds.json files only

0 commit comments

Comments
 (0)