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 f75a44ffd8 Fix check-git-diff so that it fails on CI
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-06 15:06:34 -04:00

18 lines
232 B
Bash
Executable File

#!/bin/sh
set -eu
DIFF_PATH=$1
DIFF=$(git status --porcelain -- $DIFF_PATH)
if [ "$DIFF" ]; then
echo
echo "These files were changed:"
echo
echo $DIFF
echo
exit 1
else
echo "$DIFF_PATH is correct"
fi;