From d9dbca2c639a81e91838fdf12527be15684199eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 18 Oct 2021 15:15:02 +0300 Subject: [PATCH] shellcheck --- .build.yml | 2 +- ci/test | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.build.yml b/.build.yml index c44e548..b76f302 100644 --- a/.build.yml +++ b/.build.yml @@ -11,7 +11,7 @@ tasks: sudo apt-get purge gcc -y && sudo apt-get autoremove -y - lint: cd bazel-zig-cc - shellcheck $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files))) + shellcheck -x $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files)) - test_list_toolchains: | cd bazel-zig-cc; . .envrc; echo "Available toolchains:" bazel query @zig_sdk//... | sed -En '/.*_toolchain$/ s/.*:(.*)_toolchain$/\1/p' diff --git a/ci/test b/ci/test index e8d1a10..9e119d9 100755 --- a/ci/test +++ b/ci/test @@ -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