Skip to content

Commit 00b3415

Browse files
committed
Support synonims for "release".
1 parent a7e8e76 commit 00b3415

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MANIFEST_OUT="$BUILD/manifest.json"
88

99
strip_rc_ver() {
1010
MANIFEST="$1"
11-
if [ "$2" = "rel" ]; then
11+
if [[ "$2" == "rel" ]]; then
1212
replace='s/("version":.*)rc\d+/$1/'
1313
else
1414
replace='s/("version":.*)(\d+)rc(\d+)/{$1 . ($2 == "0" ? "0" : ($2-1) . ".9" . sprintf("%03d", $3))}/e'
@@ -22,7 +22,7 @@ if [ "$1" == "tag" ]; then
2222
git tag -a "$VER" && git push origin "$VER"
2323
exit 0
2424
fi
25-
if [[ "$1" == "rel" ]]; then
25+
if [[ "$1" =~ ^r(el(ease)?)?$ ]]; then
2626
strip_rc_ver "$MANIFEST_IN" rel
2727
"$0" && "$0" bump
2828
exit

0 commit comments

Comments
 (0)