Skip to content

Instantly share code, notes, and snippets.

@theflyingcodr
Created May 2, 2019 09:45
Show Gist options
  • Save theflyingcodr/098bd9f9a3e83b22e429c425b3a76e51 to your computer and use it in GitHub Desktop.
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.
#! /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