1
0
mirror of https://github.com/containers/netavark.git synced 2026-02-05 15:45:47 +01:00
Files
netavark/hack/tree_status.sh
Paul Holzinger 86a48262aa ci: ensure tree is clean after build
To ensure Cargo.lock or other files that are committed are not modified
by the build in CI.

Fixes: #1226

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-23 15:07:16 +02:00

18 lines
275 B
Bash
Executable File

#!/usr/bin/env bash
set -e
STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]
then
echo "tree is clean"
else
echo "tree is dirty"
echo ""
echo "$STATUS"
echo ""
echo "---------------------- Diff below ----------------------"
echo ""
git --no-pager diff
exit 1
fi