arthur-tf-sync-repos.yaml: fix script error
Signed-off-by: Arthur She <arthur.she@linaro.org>
Change-Id: I71afcecbf49f5e53025f0ded7e1f28fa1f52e17b
diff --git a/ci/tf-sync-repos.sh b/ci/tf-sync-repos.sh
index 59e7512..4388879 100755
--- a/ci/tf-sync-repos.sh
+++ b/ci/tf-sync-repos.sh
@@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: BSD-3-Clause
#
-set -e
+set -ex
# The Gerrit project and Github repo mapping
# This script will mirror Gerrit_project to Github_repo
@@ -93,5 +93,5 @@
git -C "${_workdir}" push --force --tags "${gh_remote}" FETCH_HEAD:refs/heads/"${gh_branch}"
# Triggered by new tag, no need to loop other branches
- [ "$new_tag" == "1" ] && break
+ [ "$new_tag" == "1" ] && break || true
done