mirror of
https://github.com/containers/skopeo.git
synced 2025-07-15 15:32:12 +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:
parent
776b408f76
commit
509782e78b
13
hack/tree_status.sh
Executable file
13
hack/tree_status.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user