From b18d664692f4a2c15e4e62697547f9238193a493 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Thu, 10 Sep 2015 12:22:06 -0700 Subject: [PATCH] do not allow the release of a dirty binary Signed-off-by: Jessica Frazelle --- hack/release.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hack/release.sh b/hack/release.sh index 5765a12d4a..69d0763332 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -63,6 +63,13 @@ fi VERSION=$(< VERSION) BUCKET=$AWS_S3_BUCKET +if command -v git &> /dev/null && git rev-parse &> /dev/null; then + if [ -n "$(git status --porcelain --untracked-files=no)" ]; then + echo "You cannot run the release script on a repo with uncommitted changes" + usage + fi +fi + # These are the 2 keys we've used to sign the deb's # release (get.docker.com) # GPG_KEY="36A1D7869245C8950F966E92D8576A8BA88D21E9"