Skip to content

Commit 4e067eb

Browse files
authored
gae: set -e was clobbering $? (grpc#3999)
1 parent b109595 commit 4e067eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildscripts/kokoro/gae-interop.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ DEPLOY_DUMMY_CMD="./gradlew $GRADLE_FLAGS -DgaeDeployVersion=$DUMMY_DEFAULT_VERS
4141
# Deploy the dummy 'default' version. We only require that it exists when cleanup() is called.
4242
set +e
4343
$DUMMY_EXISTS_CMD
44+
EXIST=$?
4445
set -e
4546

46-
if [[ $? != 0 ]]; then
47+
if [[ $EXIST != 0 ]]; then
4748
$DEPLOY_DUMMY_CMD
4849
else
4950
echo "default version already exists: $DUMMY_DEFAULT_VERSION"

0 commit comments

Comments
 (0)