From: Kienan Stewart Date: Fri, 4 Oct 2024 12:18:40 +0000 (-0400) Subject: jjb: Print shellcheck version if the tool is available X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=95820a6d866cf040ba6cf823fea2f1f08f6d4f63;p=lttng-ci.git jjb: Print shellcheck version if the tool is available Change-Id: I356fbc23c3ad0023987c2b45f6c969624929e957 Signed-off-by: Kienan Stewart --- diff --git a/scripts/common/print.sh b/scripts/common/print.sh index 89c9043..b45b2b9 100755 --- a/scripts/common/print.sh +++ b/scripts/common/print.sh @@ -176,5 +176,10 @@ print_tooling() { print_pkgconfig_mod zlib fi + if command -v shellcheck >/dev/null 2>&1; then + print_blue "shellcheck version" + shellcheck --version | grep '^version' + fi + set -ex }