diff --git a/sync.sh b/sync.sh index f05fd19..79182b1 100644 --- a/sync.sh +++ b/sync.sh @@ -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"