Created
May 2, 2019 09:45
-
-
Save theflyingcodr/098bd9f9a3e83b22e429c425b3a76e51 to your computer and use it in GitHub Desktop.
Send an email with mailutil on linux with details of commits completed the previous day. Stick it in crontab to run every day with the arg of 3 on a Monday to get Fridays commits.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo "Starting Daily Standup Email" | |
DAYS=1 | |
if [ "$1" != "" ]; then | |
DAYS=$1 | |
fi | |
echo '$1 = ' $1 | |
cd YOUR/GIT/ROOT | |
/home/linuxbrew/.linuxbrew/bin/git-standup -d DAYS -s | /usr/bin/mail -s 'Daily Standup' -a FROM:YOUR NAME\<[email protected]> [email protected] | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment