From 439316bac1101b0355f3f5bb25eb6e66d5608b8f Mon Sep 17 00:00:00 2001 From: nyyu Date: Fri, 23 Dec 2022 11:02:27 +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 a276df0..aeea70d 100644 --- a/sync.sh +++ b/sync.sh @@ -20,7 +20,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" @@ -53,4 +53,4 @@ git reset --hard losul/lineage-19.1 cd $TOPDIR repopick -P frameworks/base -r 336824 336825 336826 336827 336828 336829 336830 336831 336832 336833 336834 336835 336836 repopick -f 333534 -P system/core -repopick -f 329229 329230 -P frameworks/base \ No newline at end of file +repopick -f 329229 329230 -P frameworks/base