1
0
mirror of https://github.com/containers/skopeo.git synced 2025-05-09 00:16:23 +00:00

add hack/tree_status.sh

This script is meant to be used in CI after a `make vendor` run.  It's
sole purpose is to execute a `git status --porcelain` and fail with the
list of files reported by it.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2019-02-21 13:50:00 +01:00
parent 776b408f76
commit 509782e78b

13
hack/tree_status.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]
then
echo "tree is clean"
else
echo "tree is dirty, please commit all changes and sync the vendor.conf"
echo ""
echo "$STATUS"
exit 1
fi