mirror of
https://github.com/containers/netavark.git
synced 2026-02-05 15:45:47 +01:00
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>
18 lines
275 B
Bash
Executable File
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
|