Guest User

Untitled

a guest
Nov 14th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. modified=$(git ls-files --modified ..)
  4.  
  5. if [[ $modified ]]; then
  6. echo "The following files are not following a guideline:"
  7. echo $modified
  8.  
  9. git diff
  10. exit -1
  11. fi
Add Comment
Please, Sign In to add comment