fix changelog empty

This commit is contained in:
nyyu 2022-10-04 07:23:44 +02:00
parent cd2d9e7e80
commit afb88771e0

View file

@ -23,7 +23,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 "$log" | wc -l) != 0 ]]; then
if [[ $(echo -n "$log" | wc -l) != 0 ]]; then
{
echo "## ${folder} ${before[${folder}]}..${commit}"
echo "$log"