Browse Source

refactoring: change count commit script total commits output

main
fdai7451 2 years ago
parent
commit
ef17e7ab11
  1. 4
      count-commits.sh

4
count-commits.sh

@ -3,9 +3,9 @@
total_commits=$(git shortlog -s -n | awk '{ sum += $1; } END { print sum; }' "$@") total_commits=$(git shortlog -s -n | awk '{ sum += $1; } END { print sum; }' "$@")
if [[ $total_commits -gt 200 ]]; then 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 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 fi
echo "Commits per user:" echo "Commits per user:"

Loading…
Cancel
Save