SHARE
TWEET

Untitled

a guest Nov 14th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top