mirror of
https://github.com/superhelio/tools.git
synced 2026-02-10 14:51:42 +00:00
Remove "-f" force option, keeping it simple
This commit is contained in:
14
release.sh
14
release.sh
@@ -11,12 +11,6 @@
|
|||||||
# file in which to update version number
|
# file in which to update version number
|
||||||
FILE_VERSION="VERSION"
|
FILE_VERSION="VERSION"
|
||||||
FILE_CHANGELOG="CHANGELOG.md"
|
FILE_CHANGELOG="CHANGELOG.md"
|
||||||
FORCE="0"
|
|
||||||
|
|
||||||
if [ $1 = '-f' ]; then
|
|
||||||
FORCE="1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
NOW="$(date +'%B %d, %Y')"
|
NOW="$(date +'%B %d, %Y')"
|
||||||
RED="\033[1;31m"
|
RED="\033[1;31m"
|
||||||
@@ -90,11 +84,9 @@ if [ "$NEW_VERSION" = "" ]; then
|
|||||||
NEW_VERSION=$SUGGESTED_VERSION
|
NEW_VERSION=$SUGGESTED_VERSION
|
||||||
fi
|
fi
|
||||||
echo -e "${NOTICE_FLAG} Will set new version to be ${WHITE}$NEW_VERSION"
|
echo -e "${NOTICE_FLAG} Will set new version to be ${WHITE}$NEW_VERSION"
|
||||||
|
echo ""
|
||||||
if [ "$FORCE" = "0" ]; then
|
echo -ne "${WARNING_FLAG} This is the last chance to bail out before anything has happened."
|
||||||
echo -ne "${WARNING_FLAG} This is the last chance to bail out before anything has happened."
|
read
|
||||||
read
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set up our release branch name
|
# Set up our release branch name
|
||||||
BRANCH_RELEASE=release-$NEW_VERSION
|
BRANCH_RELEASE=release-$NEW_VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user