Skip to content

Commit

Permalink
Set pipefail and reset -e before return. (#4177)
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>

Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed Dec 3, 2022
1 parent 2933fd2 commit 983efa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down Expand Up @@ -485,8 +485,8 @@ executeCmdWithRetry()
rt_code=$?
count=$(( $count + 1 ))
done
return "$rt_code"
set -e
return "$rt_code"
}

getFunctionalTestMaterial()
Expand Down

0 comments on commit 983efa8

Please sign in to comment.