Files
docker-cli/script/validate/check-git-diff
Daniel Nephin ef1d58dd87 Add check for compose bindata.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-05-09 15:42:22 -04:00

17 lines
270 B
Bash
Executable File

#!/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;