jjb: Print shellcheck version if the tool is available
authorKienan Stewart <kstewart@efficios.com>
Fri, 4 Oct 2024 12:18:40 +0000 (08:18 -0400)
committerKienan Stewart <kstewart@efficios.com>
Fri, 4 Oct 2024 12:18:40 +0000 (08:18 -0400)
Change-Id: I356fbc23c3ad0023987c2b45f6c969624929e957
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/common/print.sh

index 89c904335b6221dc821f782809a07677d52382dd..b45b2b9560c2ef3e8696e990a43ba49508809d0c 100755 (executable)
@@ -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
 }
This page took 0.024535 seconds and 4 git commands to generate.