Files
podman/hack/tree_status.sh
Kir Kolyshkin bb3f0c9e56 hack: format with shfmt -w
Using shfmt v3.13.1

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-06-09 11:55:16 -07:00

19 lines
396 B
Bash
Executable File

#!/usr/bin/env bash
set -e
SUGGESTION="${SUGGESTION:-run \"make vendor\" and commit all changes.}"
STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]; then
echo "tree is clean"
else
echo "tree is dirty, please $SUGGESTION"
echo ""
echo "$STATUS"
echo ""
echo "---------------------- Diff below ----------------------"
echo ""
git --no-pager diff
exit 1
fi