Skip to content

Commit c2de709

Browse files
authored
Merge pull request #71844 from aireilly/preview-urls-fix
Don't show hits for assembly xrefs
2 parents 05b0324 + dc9b4eb commit c2de709

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/get-updated-preview-urls.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ fi
2424

2525
# Search for $file references in all *.adoc files that are not in a folder called modules/, snippets/, or _unused_topics/
2626
for file in $files; do
27-
found_file=$(find . -name '*.adoc' -not -path "./modules/*" -not -path "./snippets/*" -not -path "./_unused_topics/*" -exec grep -rl "$file" {} +)
28-
assemblies+=("$found_file")
27+
include_ref="include::$file"
28+
found_file=$(find . -name '*.adoc' -not -path "./modules/*" -not -path "./snippets/*" -not -path "./_unused_topics/*" -exec grep -rl "^$include_ref" {} +)
29+
if [ -z "$found_file" ]; then
30+
assemblies+=("$file")
31+
fi
2932
done
3033

3134
# Make the HTML URL slug

0 commit comments

Comments
 (0)