From 71e489482bb5491de59d2aafcffd0dac4532a4ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cam=20Sa=C3=BCl?= <cammsaul@gmail.com>
Date: Tue, 29 Sep 2015 15:01:42 -0700
Subject: [PATCH] ./build-uberjar lets you specify version interactively

---
 build-uberjar | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/build-uberjar b/build-uberjar
index 8934d8741bb..7c95e7a92ba 100755
--- a/build-uberjar
+++ b/build-uberjar
@@ -6,14 +6,13 @@ version() {
     if [ ! $CI ]; then
         VERSION=$(./version)
 
-        echo "Tagging this uberjar as version '$VERSION'"
-        read -e -p "Is this OK? [y/n] " TAG_IS_OKAY_Y_OR_N
-
-        if [ $TAG_IS_OKAY_Y_OR_N != "y" ]; then
-            "Stopping now! Please check that you've pushed the correct tag to origin/master and try again. 😿"
-            exit 1
+        read -e -p "What version string we use for this uberjar? [$VERSION] " VERSION_RESPONSE
+        if [ $VERSION_RESPONSE ]; then
+            VERSION=$VERSION_RESPONSE
         fi
 
+        echo "Tagging uberjar with version '$VERSION'."
+
         # Ok, now generate the appropriate version.properties file.
         echo "version=$VERSION" > resources/version.properties
     fi
-- 
GitLab