Files
kata-containers/src/runtime/hack/tree_status.sh
Fabiano Fidêncio 579b3f34c2 runtime: Add make vendor
Let's add this target so we can actually enforce, as part of the static
checks (which will be added in a follow-up commit), that our vendored go
code is up-to-date.

Related: #2159

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
2021-07-14 13:59:40 +02:00

19 lines
301 B
Bash
Executable File

#!/usr/bin/env bash
#
# Copyright 2021 Red Hat Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]; then
echo "tree is clean"
else
echo "tree is dirty, please commit all changes"
echo ""
echo "$STATUS"
git diff
exit 1
fi