We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e8e76 commit 00b3415Copy full SHA for 00b3415
1 file changed
build.sh
@@ -8,7 +8,7 @@ MANIFEST_OUT="$BUILD/manifest.json"
8
9
strip_rc_ver() {
10
MANIFEST="$1"
11
- if [ "$2" = "rel" ]; then
+ if [[ "$2" == "rel" ]]; then
12
replace='s/("version":.*)rc\d+/$1/'
13
else
14
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
22
git tag -a "$VER" && git push origin "$VER"
23
exit 0
24
fi
25
-if [[ "$1" == "rel" ]]; then
+if [[ "$1" =~ ^r(el(ease)?)?$ ]]; then
26
strip_rc_ver "$MANIFEST_IN" rel
27
"$0" && "$0" bump
28
exit
0 commit comments