From e9d65db50c17a99e6c023accfb561c5c9dfac3be Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 4 Aug 2016 16:26:35 +0300 Subject: [PATCH] Remove "-f" force option, keeping it simple --- release.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/release.sh b/release.sh index 09e3d2d..82705ef 100755 --- a/release.sh +++ b/release.sh @@ -11,12 +11,6 @@ # file in which to update version number FILE_VERSION="VERSION" FILE_CHANGELOG="CHANGELOG.md" -FORCE="0" - -if [ $1 = '-f' ]; then - FORCE="1" -fi - NOW="$(date +'%B %d, %Y')" RED="\033[1;31m" @@ -90,11 +84,9 @@ if [ "$NEW_VERSION" = "" ]; then NEW_VERSION=$SUGGESTED_VERSION fi echo -e "${NOTICE_FLAG} Will set new version to be ${WHITE}$NEW_VERSION" - -if [ "$FORCE" = "0" ]; then - echo -ne "${WARNING_FLAG} This is the last chance to bail out before anything has happened." - read -fi +echo "" +echo -ne "${WARNING_FLAG} This is the last chance to bail out before anything has happened." +read # Set up our release branch name BRANCH_RELEASE=release-$NEW_VERSION