mirror of https://github.com/docker/cli.git
17 lines
270 B
Plaintext
17 lines
270 B
Plaintext
|
#!/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;
|