1

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

View File

@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
# 'bazel' binary is stored in $HOME in builds.sr.ht. # 'bazel' binary is stored in $HOME in builds.sr.ht.
export PATH=$PATH:$HOME export PATH=$PATH:$HOME
bazel build "$@" set -xeuo pipefail
bazel build "$@"
execpath=$(bazel aquery "$@" 2>/dev/null | \ execpath=$(bazel aquery "$@" 2>/dev/null | \
awk "/action 'GoLink/{f=1};/Outputs: / &&f{print;exit}" | \ awk "/action 'GoLink/{f=1};/Outputs: / &&f{print;exit}" | \
awk -F'\\[|\\]' '{print $2}') awk -F'\\[|\\]' '{print $2}')