You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
334 B
9 lines
334 B
#!/bin/bash
|
|
|
|
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!"
|
|
else
|
|
echo "Total commits: $total_commits. $(expr 200 - $total_commits) commits left to reach minimum required commits"
|
|
fi
|