From dd4b56e820454eee33f642b122ae278d199b23de Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Wed, 30 Nov 2022 17:03:50 -0500 Subject: [PATCH] Set pipefail and reset -e before return. 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()