From 8cef507cfbcc6a8a0350199359ad5ea29d16689a Mon Sep 17 00:00:00 2001 From: aireilly Date: Tue, 9 Jan 2024 09:29:26 +0000 Subject: [PATCH] updating get-updated-distros logic --- scripts/get-updated-distros.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/get-updated-distros.sh b/scripts/get-updated-distros.sh index db1fca51b7..b51cfcb076 100755 --- a/scripts/get-updated-distros.sh +++ b/scripts/get-updated-distros.sh @@ -3,7 +3,7 @@ # The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated. # Get the *.adoc and distro maps files in the pull request -FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*') +FILES=$(git diff --name-only HEAD@{1} --diff-filter=AMRD "*.yml" "*.adoc" ':(exclude)_unused_topics/*') REPO_PATH=$(git rev-parse --show-toplevel) @@ -17,11 +17,6 @@ then # $UPDATED_ASSEMBLIES is the list of assemblies that contains changed modules UPDATED_ASSEMBLIES=$(grep -rnwl "$REPO_PATH" --include=\*.adoc --exclude-dir={snippets,modules} -e "$MODULES") - # Exit 0 if there are no modified assemblies - if [[ -z "${UPDATED_ASSEMBLIES}" ]] - then - exit 0 - fi # Subtract $REPO_PATH from path with bash substring replacement UPDATED_ASSEMBLIES=${UPDATED_ASSEMBLIES//"$REPO_PATH/"/} fi