From b6f80d3d1f749ef80f47fb82df08025fc6b3197a Mon Sep 17 00:00:00 2001 From: fdai7451 Date: Mon, 16 Jan 2023 23:08:41 +0100 Subject: [PATCH] refactoring: change count commit script total commits output --- count-commits.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/count-commits.sh b/count-commits.sh index 1997abb..949ec77 100755 --- a/count-commits.sh +++ b/count-commits.sh @@ -3,9 +3,9 @@ total_commits=$(git shortlog -s -n | awk '{ sum += $1; } END { print sum; }' "$@") if [[ $total_commits -gt 200 ]]; then - echo "Total commits: $total_commits. Minimum required commits reached!" + echo "Total commits: $total_commits (minimum required commits reached)" else - echo "Total commits: $total_commits. $(expr 200 - $total_commits) commits left to reach minimum required commits" + echo "Total commits: $total_commits ($(expr 200 - $total_commits) commits left to reach minimum required commits)" fi echo "Commits per user:"