Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo running pre-push hook for jshint
- # Make a temp directory for writing the .jshintrc file
- TMP_DIR=`mktemp -d`
- EXIT_CODE=0
- # Run JSHint on the file and redirect the output back to Git
- jshint `git root` >&2
- # Capture the exit status of last command
- EXIT_CODE=$((${EXIT_CODE} + $?))
- exit $EXIT_CODE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement