Skip to content

Instantly share code, notes, and snippets.

@otterthecat
Created February 10, 2014 03:07
Show Gist options
  • Save otterthecat/8909689 to your computer and use it in GitHub Desktop.
Save otterthecat/8909689 to your computer and use it in GitHub Desktop.
post-commit hook
#!/bin/sh
grunt report
RETVAL=$?
[ $RETVAL -eq 0 ] && echo Success
[ $RETVAL -ne 0 ] && echo Failure
if [ $RETVAL -ne 0 ]
then
echo "Report generation failed"
exit 1
else
echo "Report has been generated"
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment