summaryrefslogtreecommitdiff
path: root/git/diff.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git/diff.sh')
-rwxr-xr-xgit/diff.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/git/diff.sh b/git/diff.sh
index 19737e9..bd4639e 100755
--- a/git/diff.sh
+++ b/git/diff.sh
@@ -10,7 +10,20 @@ wd=`pwd`
for i in $modules; do
echo "diff $i" 1>&2
cd $i
+
git --no-pager diff
+
+ if [ $? -ne 0 ]; then
+ echo "diff FAILED" 1>&2
+ exit 1
+ fi
+
git --no-pager diff --check
+
+ if [ $? -ne 0 ]; then
+ echo "diff --check FAILED" 1>&2
+ exit 1
+ fi
+
cd $wd
done