summaryrefslogtreecommitdiffstats
path: root/util/board_status/board_status.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/board_status/board_status.sh')
-rwxr-xr-xutil/board_status/board_status.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 83a7200d64f3..13c58e1740a3 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -340,6 +340,13 @@ timestamp=$($getrevision -t)
results="${vendor}/${mainboard}/${tagged_version}/${timestamp}"
+if [ -n "$(echo $tagged_version | grep dirty)" ]; then
+ echo "The repository is in a dirty state. Please see the output of"
+ echo "'git status' below."
+ git status
+ exit $EXIT_FAILURE
+fi
+
echo "Temporarily placing output in ${tmpdir}/${results}"
mkdir -p "${tmpdir}/${results}"