summaryrefslogtreecommitdiffstats
path: root/hack/tree_status.sh
blob: 2889a7fc8ef2c59a1e4b4574e35420e387dbc73e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
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"
	exit 1
fi