Skip to content

Instantly share code, notes, and snippets.

@jautero
Created April 2, 2013 04:13
Show Gist options
  • Save jautero/5289888 to your computer and use it in GitHub Desktop.
Save jautero/5289888 to your computer and use it in GitHub Desktop.
Simple iOS app log file generator.
#!/bin/sh
logmessage=""
git log >git.log
if grep -i implemented git.log >/dev/null 2>&1; then
logmessage="improvements"
fi
if grep -i fixed git.log >/dev/null 2>&1; then
[ -n "$logmessage" ] && logmessage="$logmessage and "
logmessage="${logmessage}bug fixes"
fi
echo "Contains $logmessage."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment