From 3941420208529d7c4219350f7894789536d72a6e Mon Sep 17 00:00:00 2001 From: nyyu Date: Mon, 22 Aug 2022 21:15:44 +0200 Subject: [PATCH] exclude lineage infra from changelog --- sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sync.sh b/sync.sh index 46b326b..7950312 100644 --- a/sync.sh +++ b/sync.sh @@ -17,14 +17,14 @@ echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}" tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"')) for i in "${tmp[@]}"; do IFS=: read -r folder commit <<<"${i}" - if [[ "${before[${folder}]}" != "${commit}" ]]; then - cd ${folder} + if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then + cd "${folder}" || continue { echo "## ${folder}" git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}" echo } >>"${changelog}" - cd ${TOPDIR} + cd "${TOPDIR}" || continue fi done echo -e "\n" >>"${changelog}"