summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-13 15:40:06 +0100
committerErich Eckner <git@eckner.net>2017-11-13 15:40:06 +0100
commitd073da7d3aa30cd22940faec3e32de640a43e73d (patch)
treec82dd33509407a8c733d37c785954c3c926c7b2c /bin/build-master-status
parent166b987f6922bbba32c5695132967cd74072e6cc (diff)
downloadbuilder-d073da7d3aa30cd22940faec3e32de640a43e73d.tar.xz
exit more often and more silent if build-master-sanity existent
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 15df41c..719b22b 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -55,6 +55,11 @@ if [ $# -ne 0 ]; then
usage
fi
+if [ -s "${work_dir}/build-master-sanity" ]; then
+ >&2 echo 'Build master is not sane.'
+ exit
+fi
+
tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT