binctr/vendor/github.com/docker/cli/scripts/validate/check-git-diff
Jess Frazelle 60f032f6f5 Revert "update to use containerd seccomp package"
This reverts commit 4f8e065faf055d3f0463a92622297ca3afac07f4.
2018-03-22 09:15:36 -04:00

17 lines
236 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;