doc/api/libbabeltrace2/DoxygenLayout.xml: use `topics` tab
[babeltrace.git] / tools / shellcheck.sh
index 6cf23b3b1e7f485da8483eaf91e1e43051ca6f26..b03023e846004acf691dfbd956eeb9c306a5db80 100755 (executable)
@@ -6,16 +6,17 @@
 
 set -eu
 
+shellcheck=${SHELLCHECK:-shellcheck}
 retcode=0
 
 while read -r script_file; do
        echo "Running ShellCheck on \`$script_file\`"
        pushd "${script_file%/*}" >/dev/null
-       shellcheck -x "${script_file##*/}" || retcode=$?
+       "$shellcheck" -x "${script_file##*/}" || retcode=$?
        popd >/dev/null
 done <<< "$(find . -type f -name '*.sh' \
        ! -path './.git/*' \
-        ! -path ./config/ltmain.sh \
+       ! -path ./config/ltmain.sh \
        ! -path ./tests/utils/tap-driver.sh \
        ! -path ./tests/utils/tap/tap.sh)"
 
This page took 0.025134 seconds and 4 git commands to generate.