1
0
mirror of https://github.com/docker/cli.git synced 2025-08-29 00:47:54 +03:00
Files
cli/scripts/validate/check-git-diff
Daniel Nephin 60b2dd3e23 Update the README
Remove referenced to developing on the host, we shouldn't support it.

Move script/validate to scripts/validate to be consistent.
Set the default target to be binary instead of clean.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-05-15 14:07:30 -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;