28/01/2020 16:02, Ciara Power: > When all checks are completed on the specified commit logs, the script > indicates if all are valid, or if there were some failures.
I think the most important would be to have an error code. Please could you exit with 0 only if no issue is found? [...] > +total=$(echo "$commits" | wc -l) > +if $failure ; then > + printf "\nInvalid patch(es) found - checked $total patch" > +else > + printf "\n$total/$total valid patch" > +fi > +[ $total -le 1 ] || printf 'es' > +printf '\n'