Advertisement
Guest User

Untitled

a guest
May 27th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo running pre-push hook for jshint
  4.  
  5. # Make a temp directory for writing the .jshintrc file
  6. TMP_DIR=`mktemp -d`
  7. EXIT_CODE=0
  8.  
  9. # Run JSHint on the file and redirect the output back to Git
  10. jshint `git root` >&2
  11.  
  12. # Capture the exit status of last command
  13. EXIT_CODE=$((${EXIT_CODE} + $?))
  14.  
  15. exit $EXIT_CODE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement