diff --git a/build-and-file b/build-and-file index a9ff24f..a17a6b4 100755 --- a/build-and-file +++ b/build-and-file @@ -2,7 +2,8 @@ # 'bazel' binary is stored in $HOME in builds.sr.ht. export PATH=$PATH:$HOME -set -xeuo pipefail +# -o pipefail fails `bazel aquery ...`: it errs if it can't output to stdout. +set -xeu bazel build "$@" execpath=$(bazel aquery "$@" 2>/dev/null | \