Skip to content

Commit

Permalink
[C++ API] script exits if a single command fails(ray-project#26344)
Browse files Browse the repository at this point in the history
  • Loading branch information
SongGuyang authored Jul 7, 2022
1 parent e31baeb commit 857e51a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/example/run.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 857e51a

Please sign in to comment.