Add check for compose bindata.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2017-05-09 15:42:22 -04:00
parent 079a5598f1
commit ef1d58dd87
6 changed files with 37 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -eu
DIFF_PATH=$1
if [ "`git status --porcelain -- $DIFF_PATH 2>/dev/null`" ]; then
echo
echo "These files were changed:"
echo
git status --porcelain -- $DIFF_PATH 2>/dev/null
echo
exit 1
else
echo "$DIFF_PATH is correct"
fi;