Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Jessica Frazelle authored on 2015/09/11 04:22:06... | ... |
@@ -63,6 +63,13 @@ fi |
63 | 63 |
VERSION=$(< VERSION) |
64 | 64 |
BUCKET=$AWS_S3_BUCKET |
65 | 65 |
|
66 |
+if command -v git &> /dev/null && git rev-parse &> /dev/null; then |
|
67 |
+ if [ -n "$(git status --porcelain --untracked-files=no)" ]; then |
|
68 |
+ echo "You cannot run the release script on a repo with uncommitted changes" |
|
69 |
+ usage |
|
70 |
+ fi |
|
71 |
+fi |
|
72 |
+ |
|
66 | 73 |
# These are the 2 keys we've used to sign the deb's |
67 | 74 |
# release (get.docker.com) |
68 | 75 |
# GPG_KEY="36A1D7869245C8950F966E92D8576A8BA88D21E9" |