File size: 166 Bytes
2d8be8f
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if git diff --quiet --ignore-submodules HEAD
then
  echo "working directory is clean"
else
  echo "found diff"
  git diff --name-status HEAD
  exit 1
fi