From 29e2317de34d8300719bea1862609daad9e2866c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 19 Jun 2021 16:48:26 +0300 Subject: [PATCH] bash stricter mode --- build-and-file | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-and-file b/build-and-file index bc54c1c..a9ff24f 100755 --- a/build-and-file +++ b/build-and-file @@ -1,10 +1,10 @@ #!/bin/bash - # 'bazel' binary is stored in $HOME in builds.sr.ht. export PATH=$PATH:$HOME -bazel build "$@" +set -xeuo pipefail +bazel build "$@" execpath=$(bazel aquery "$@" 2>/dev/null | \ awk "/action 'GoLink/{f=1};/Outputs: / &&f{print;exit}" | \ awk -F'\\[|\\]' '{print $2}')