File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
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 " --include= \* .adoc -- exclude-dir={snippets,modules} -e " $MODULES " )
20
+ UPDATED_ASSEMBLIES=$( grep -rnwl " $REPO_PATH " --exclude-dir={snippets,modules} -e " $MODULES " -- " *.adoc " )
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 " --include " *.yml" _topic_maps ; then
41
+ if grep -rq " $PAGE " _topic_maps/ * .yml; 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 " --exclude-dir={snippets,modules} -e " $MODULES " -- " *.adoc" )
19
19
20
20
# Exit 0 if there are no modified assemblies
21
21
if [[ -z " ${UPDATED_ASSEMBLIES} " ]]
You can’t perform that action at this time.
0 commit comments