diff options
author | hackademix | 2018-12-27 10:50:04 +0100 |
---|---|---|
committer | hackademix | 2018-12-27 10:54:45 +0100 |
commit | 67312d038506a14eb1d1a7c2e66e6a1f429c46d8 (patch) | |
tree | a3c958d0a8e2425d26a2f748a581089849c6dc63 | |
parent | 8493f63e25e6f08e7aed856801d043d4fda6a176 (diff) | |
download | noscript-67312d038506a14eb1d1a7c2e66e6a1f429c46d8.tar.gz noscript-67312d038506a14eb1d1a7c2e66e6a1f429c46d8.tar.xz noscript-67312d038506a14eb1d1a7c2e66e6a1f429c46d8.zip |
[Build] Bumping version to next rc made easier (build.sh bump rcX).
-rw-r--r-- | build.sh | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -26,10 +26,15 @@ if [[ "$1" == "bump" ]]; then NEW_VER='"'"$2" elif [[ "$2" == *rc* ]]; then # new RC after release if [[ "$2" == rc* ]]; then - echo >&2 "Please specify next release version (like 12rc1). Current is $VER" - exit 1 + if [[ ! "$VER" == *rc* ]]; then + echo >&2 "Please specify next release version (like 12rc1). Current is $VER" + exit 1 + else + pattern='rc\d+' + fi + else + pattern='\b(?:\d+rc)?\d+' fi - pattern='\b(?:\d+rc)?\d+' else # incremental version pattern='\b\d+' fi |