summaryrefslogtreecommitdiff
path: root/hack/tree_status.sh
blob: ac874a3478fda0a6f8586391c1cbef14837c1baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e

SUGGESTION="${SUGGESTION:-sync the vendor.conf 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"
	exit 1
fi