From 77a8492405cacecf41c9f6691ac2b7712854d7c0 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Fri, 1 Sep 2017 14:04:59 -0700 Subject: [PATCH] fix(aio): Fix deploy to firebase script: should use < for string operations (#19005) PR Close #19005 --- aio/scripts/deploy-to-firebase.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/scripts/deploy-to-firebase.sh b/aio/scripts/deploy-to-firebase.sh index 90ccedd954..2a2cdc738e 100755 --- a/aio/scripts/deploy-to-firebase.sh +++ b/aio/scripts/deploy-to-firebase.sh @@ -27,7 +27,7 @@ else readonly majorVersionStable=${STABLE_BRANCH%%.*} # Do not deploy if the major version is not less than the stable branch major version - if [[ $majorVersion -ge $majorVersionStable ]]; then + if [[ !( "$majorVersion" < "$majorVersionStable" ) ]]; then echo "Skipping deploy of branch \"${TRAVIS_BRANCH}\" to firebase." echo "We only deploy archive branches with the major version less than the stable branch: \"${STABLE_BRANCH}\"" exit 0