Skip to content

Instantly share code, notes, and snippets.

@fkei
Created February 26, 2014 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fkei/9224237 to your computer and use it in GitHub Desktop.
Save fkei/9224237 to your computer and use it in GitHub Desktop.
git#pre-commit : precommit grunt-jshint checker
#!/bin/bash
#
grunt jshint
[ $? -ne 0 ] && echo "grunt jshint error" && exit 1
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment