1
Fork 0

bash stricter mode

This commit is contained in:
Motiejus Jakštys 2021-06-19 16:48:26 +03:00 committed by Motiejus Jakštys
parent f6f6be1b88
commit 29e2317de3
1 changed files with 2 additions and 2 deletions

View 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}')