Skip to content

Commit 6565ace

Browse files
authored
Merge pull request #68824 from aireilly/fix-travis-failures
Travis errors: put back grep changes, they are causing build failures
2 parents 8d6994f + ee2f61e commit 6565ace

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/check-asciidoctor-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ check_updated_assemblies () {
1717
if [ "${MODULES}" ]
1818
then
1919
# $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")
2121
# Exit 0 if there are no modified assemblies
2222
if [[ -z "${UPDATED_ASSEMBLIES}" ]]
2323
then
@@ -38,7 +38,7 @@ check_updated_assemblies () {
3838
# search for files only, not folders
3939
PAGE="File: $(basename "$ASSEMBLY" .adoc)"
4040
# 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
4242
# validate the assembly
4343
echo "Validating $ASSEMBLY ... 🚨"
4444
RED='\033[0;31m'

scripts/get-updated-distros.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ MODULES=$(echo "$FILES" | awk '/modules\/(.*)\.adoc/')
1515
if [ "${MODULES}" ]
1616
then
1717
# $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")
1919

2020
# Exit 0 if there are no modified assemblies
2121
if [[ -z "${UPDATED_ASSEMBLIES}" ]]
@@ -36,7 +36,7 @@ for ASSEMBLY in $ALL_ASSEMBLIES; do
3636
# Search for files only, not folders
3737
PAGE="File: $(basename "$ASSEMBLY" .adoc)"
3838
# 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
4040
DISTROS+=("$(grep -rl "$PAGE" _topic_maps/*.yml)")
4141
fi
4242
done

0 commit comments

Comments
 (0)