mirror of
https://github.com/docker/cli.git
synced 2025-08-30 12:01:10 +03:00
Fix check-git-diff so that it fails on CI
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
set -eu
|
||||
|
||||
DIFF_PATH=$1
|
||||
DIFF=$(git status --porcelain -- $DIFF_PATH)
|
||||
|
||||
if [ "`git status --porcelain -- $DIFF_PATH 2>/dev/null`" ]; then
|
||||
if [ "$DIFF" ]; then
|
||||
echo
|
||||
echo "These files were changed:"
|
||||
echo
|
||||
git status --porcelain -- $DIFF_PATH 2>/dev/null
|
||||
echo $DIFF
|
||||
echo
|
||||
exit 1
|
||||
else
|
||||
|
Reference in New Issue
Block a user