From 06dccdb588d6bd42b2ac337f3fcc2b9985e5df49 Mon Sep 17 00:00:00 2001 From: abejgonzalez Date: Tue, 29 Dec 2020 10:54:05 -0800 Subject: [PATCH] Organize check commit CI printout | Don't copy .git folder in CI --- .circleci/check-commit.sh | 16 +++++++++++----- .circleci/defaults.sh | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.circleci/check-commit.sh b/.circleci/check-commit.sh index 2660fa49..91ee9e80 100755 --- a/.circleci/check-commit.sh +++ b/.circleci/check-commit.sh @@ -124,19 +124,25 @@ search # turn off verbose printing to make this easier to read set +x -# print all result strings +# print 0's for str in "${all_names[@]}"; do - echo "$str" + if [ 0 = $(echo "$str" | awk '{print$3}') ]; then + echo "$str" + fi done -# check if there was a non-zero return code +echo "" + +# check if there was a non-zero return code and print 1's +EXIT=0 for str in "${all_names[@]}"; do if [ ! 0 = $(echo "$str" | awk '{print$3}') ]; then - exit 1 + echo "$str" + EXIT=1 fi done echo "Done checking all submodules" - +exit $EXIT diff --git a/.circleci/defaults.sh b/.circleci/defaults.sh index 12c4531f..11053f60 100755 --- a/.circleci/defaults.sh +++ b/.circleci/defaults.sh @@ -1,7 +1,7 @@ #!/bin/bash copy () { - rsync -avzp -e 'ssh' $1 $2 + rsync -avzp -e 'ssh' --exclude '.git' $1 $2 } run () {