1

shellcheck

This commit is contained in:
Motiejus Jakštys
2021-10-18 15:15:02 +03:00
parent 4bbae178ca
commit d9dbca2c63
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ cd "$(dirname "$0")/.."
_build_and_file() {
bazel build --color=yes --curses=yes "$@"
local execpath=$(bazel aquery "$@" 2>/dev/null | \
local execpath
execpath=$(bazel aquery "$@" 2>/dev/null | \
awk "/action 'GoLink/{f=1};/Outputs: /&&f{print;exit}" | \
awk -F'\\[|\\]' '{print $2}')
file "$execpath" | tee /dev/stderr