diff --git a/sync.sh b/sync.sh index d8435bb..b30bce0 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"