From 983efa887d7f9d43f13cff4a06ade76554824f22 Mon Sep 17 00:00:00 2001 From: sophia-guo Date: Fri, 2 Dec 2022 21:15:13 -0500 Subject: [PATCH] Set pipefail and reset -e before return. (#4177) Signed-off-by: Sophia Guo Signed-off-by: Sophia Guo --- get.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get.sh b/get.sh index 5da139561e..d471926762 100755 --- a/get.sh +++ b/get.sh @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -e +set -eo pipefail SDKDIR="" TESTDIR="$(pwd)" @@ -485,8 +485,8 @@ executeCmdWithRetry() rt_code=$? count=$(( $count + 1 )) done - return "$rt_code" set -e + return "$rt_code" } getFunctionalTestMaterial()