File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ check_updated_assemblies () {
17
17
if [ " ${MODULES} " ]
18
18
then
19
19
# $UPDATED_ASSEMBLIES is the list of assemblies that contains changed modules
20
- UPDATED_ASSEMBLIES=$( grep -rnwl " $REPO_PATH " --exclude-dir={snippets,modules} -e " $MODULES " -- " *.adoc " )
20
+ UPDATED_ASSEMBLIES=$( grep -rnwl " $REPO_PATH " --include= \* .adoc -- exclude-dir={snippets,modules} -e " $MODULES " )
21
21
# Exit 0 if there are no modified assemblies
22
22
if [[ -z " ${UPDATED_ASSEMBLIES} " ]]
23
23
then
@@ -38,7 +38,7 @@ check_updated_assemblies () {
38
38
# search for files only, not folders
39
39
PAGE=" File: $( basename " $ASSEMBLY " .adoc) "
40
40
# don't validate the assembly if it is not in a topic map
41
- if grep -rq " $PAGE " _topic_maps/ * .yml; then
41
+ if grep -rq " $PAGE " --include " *.yml" _topic_maps ; then
42
42
# validate the assembly
43
43
echo " Validating $ASSEMBLY ... 🚨"
44
44
RED=' \033[0;31m'
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ MODULES=$(echo "$FILES" | awk '/modules\/(.*)\.adoc/')
15
15
if [ " ${MODULES} " ]
16
16
then
17
17
# $UPDATED_ASSEMBLIES is the list of assemblies that contains changed modules
18
- UPDATED_ASSEMBLIES=$( grep -rnwl " $REPO_PATH " --exclude-dir={snippets,modules} -e " $MODULES " -- " *.adoc " )
18
+ UPDATED_ASSEMBLIES=$( grep -rnwl " $REPO_PATH " --include= \* .adoc -- exclude-dir={snippets,modules} -e " $MODULES " )
19
19
20
20
# Exit 0 if there are no modified assemblies
21
21
if [[ -z " ${UPDATED_ASSEMBLIES} " ]]
@@ -36,7 +36,7 @@ for ASSEMBLY in $ALL_ASSEMBLIES; do
36
36
# Search for files only, not folders
37
37
PAGE=" File: $( basename " $ASSEMBLY " .adoc) "
38
38
# Don't include the assembly if it is not in a topic map
39
- if grep -rq " $PAGE " _topic_maps/ * .yml; then
39
+ if grep -rq " $PAGE " --include " *.yml" _topic_maps ; then
40
40
DISTROS+=(" $( grep -rl " $PAGE " _topic_maps/* .yml) " )
41
41
fi
42
42
done
You can’t perform that action at this time.
0 commit comments