From aee33e4be0c1d52c4af6e1c00c59c992877ccdd1 Mon Sep 17 00:00:00 2001 From: nyyu Date: Fri, 23 Dec 2022 11:01:49 +0100 Subject: [PATCH] fix changelog if one commit --- sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync.sh b/sync.sh index 6dbebce..bd31d1c 100644 --- a/sync.sh +++ b/sync.sh @@ -25,7 +25,7 @@ for i in "${tmp[@]}"; do if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then cd "${folder}" || continue log=$(git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}") - if [[ $(echo -n "$log" | wc -l) != 0 ]]; then + if [[ $(echo -n "$log" | wc -c) != 0 ]]; then { echo "## ${folder} ${before[${folder}]}..${commit}" echo "$log" @@ -67,4 +67,4 @@ cd $TOPDIR #safetynet repopick -f 334348 -P system/core -repopick -f 334343 334344 -P frameworks/base \ No newline at end of file +repopick -f 334343 334344 -P frameworks/base