From f65969f038c85db00310533777ff6e6648c5e9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 20 Jun 2021 14:37:28 +0300 Subject: [PATCH] fix build-and-file --- build-and-file | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 | \