mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 03:10:18 +00:00
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>
14 lines
215 B
Bash
Executable File
14 lines
215 B
Bash
Executable File
#!/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
|