You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/10/26 14:30:47 UTC

[camel] branch main updated: (chores) ci: fix concatenating components variables

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 462985f29b4 (chores) ci: fix concatenating components variables
462985f29b4 is described below

commit 462985f29b49a55c0d47491652acd597722a3ed2
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Oct 26 16:30:22 2022 +0200

    (chores) ci: fix concatenating components variables
---
 .github/actions/quick-test/quick-test.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/actions/quick-test/quick-test.sh b/.github/actions/quick-test/quick-test.sh
index b25468d2c1b..e1051cc41d3 100755
--- a/.github/actions/quick-test/quick-test.sh
+++ b/.github/actions/quick-test/quick-test.sh
@@ -121,7 +121,11 @@ function main() {
   local components=$(git diff "${startCommit}..${endCommit}" --name-only --pretty=format:"" | grep -e '^components' | grep -v "camel-aws" | grep -v -e '^$' | cut -d / -f 1-2 | uniq | sort)
   local componentsAws=$(git diff "${startCommit}..${endCommit}" --name-only --pretty=format:"" | grep -e '^components' | grep "camel-aws" | grep -v -e '^$' | cut -d / -f 1-3 | uniq | sort)
 
-  components+="\n$componentsAws"
+  if [[ -z "${components}" ]] ; then
+    components="${componentsAws}"
+  else
+    components=$(printf '%s\n%s' "${components}" "${componentsAws}")
+  fi
 
   local total=$(echo "${components}" | grep -v -e '^$' | wc -l)