mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-02 05:54:26 +01:00
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>
19 lines
301 B
Bash
Executable File
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
|