gae: set -e was clobbering $? (#3999)

This commit is contained in:
zpencer 2018-01-25 17:19:57 -08:00 committed by GitHub
parent b109595ad3
commit 4e067eb651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -41,9 +41,10 @@ DEPLOY_DUMMY_CMD="./gradlew $GRADLE_FLAGS -DgaeDeployVersion=$DUMMY_DEFAULT_VERS
# Deploy the dummy 'default' version. We only require that it exists when cleanup() is called.
set +e
$DUMMY_EXISTS_CMD
EXIST=$?
set -e
if [[ $? != 0 ]]; then
if [[ $EXIST != 0 ]]; then
$DEPLOY_DUMMY_CMD
else
echo "default version already exists: $DUMMY_DEFAULT_VERSION"