File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ if [ "$1" == "tag" ]; then
1111 git tag -a " $VER " && git push origin " $VER "
1212 exit 0
1313fi
14- if [ " $1 " == " rel" ]; then
14+ if [[ " $1 " == " rel" ] ]; then
1515 perl -pi.bak -e ' s/("version":.*)rc\d+/$1/' " $MANIFEST_IN "
1616 rm -f " $MANIFEST_IN " .bak
1717 " $0 " && " $0 " bump
1818 exit
1919fi
20- if [ " $1 " == " bump" ]; then
21- if [ " $2 " ]; then
20+
21+ if [[ " $1 " == " bump" ]]; then
22+ if [[ " $2 " ]]; then
2223 NEW_VER=" $2 "
2324 if [[ " $2 " == * .* ]]; then # full dotted version number
2425 pattern=' "\d+.*?'
@@ -64,13 +65,13 @@ BUILD_OPTS="build"
6465if [[ $VER == * rc* ]]; then
6566 sed -re ' s/^(\s+)"strict_min_version":.*$/\1"update_url": "https:\/\/secure.informaction.com\/update\/?v=' $VER ' ",\n\0/' \
6667 " $MANIFEST_IN " > " $MANIFEST_OUT "
67- if [ " $1 " == " sign" ]; then
68+ if [[ " $1 " == " sign" ] ]; then
6869 BUILD_CMD=" $BASE /../../we-sign"
6970 BUILD_OPTS=" "
7071 fi
7172else
7273 grep -v ' "update_url":' " $MANIFEST_IN " > " $MANIFEST_OUT "
73- if [ " $1 " == " sign" ]; then
74+ if [[ " $1 " == " sign" ] ]; then
7475 echo >&2 " WARNING: won't auto-sign a release version, please manually upload to AMO."
7576 fi
7677fi
You can’t perform that action at this time.
0 commit comments