[C++ API] script exits if a single command fails(#26344)

This commit is contained in:
Guyang Song 2022-07-07 16:54:53 +08:00 committed by GitHub
parent e31baebc4e
commit 857e51aadc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash
#Cause the script to exit if a single command fails.
set -e
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE:-$0}")" || exit; pwd)"
bazel --nosystem_rc --nohome_rc build //:example