Skip to content

Commit 9052c37

Browse files
authored
Merge pull request #69931 from aireilly/update-get-distros
updating get-updated-distros logic
2 parents d73de38 + c5dceb7 commit 9052c37

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/get-updated-distros.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated.
44

55
# Get the *.adoc and distro maps files in the pull request
6-
FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
6+
FILES=$(git diff --name-only HEAD@{1} --diff-filter=AMRD "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
77

88
REPO_PATH=$(git rev-parse --show-toplevel)
99

@@ -17,11 +17,6 @@ then
1717
# $UPDATED_ASSEMBLIES is the list of assemblies that contains changed modules
1818
UPDATED_ASSEMBLIES=$(grep -rnwl "$REPO_PATH" --include=\*.adoc --exclude-dir={snippets,modules} -e "$MODULES")
1919

20-
# Exit 0 if there are no modified assemblies
21-
if [[ -z "${UPDATED_ASSEMBLIES}" ]]
22-
then
23-
exit 0
24-
fi
2520
# Subtract $REPO_PATH from path with bash substring replacement
2621
UPDATED_ASSEMBLIES=${UPDATED_ASSEMBLIES//"$REPO_PATH/"/}
2722
fi

0 commit comments

Comments
 (0)