Files
carrotpilot/release/check-dirty.sh
Vehicle Researcher bd2ed6664a Carrot2-v9
2025-08-03 19:15:56 +09:00

12 lines
224 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
if [ ! -z "$(git status --porcelain)" ]; then
echo "Dirty working tree after build:"
git status --porcelain
exit 1
fi