tools/shellcheck.sh: allow overriding the shellcheck path
For an unknown (to me) reason, the shellcheck binary from the Arch Linux
package (version 0.9.0-79) hits this error:
$ tools/shellcheck.sh
...
Running ShellCheck on `./tests/cli/test-intersection.sh`
shellcheck: (Array.!): undefined array element
...
This looks like an error internal to shellcheck. When using the Linux
x86-64 binary from the release [1], it works fine. Add a way to
override the shellcheck binary in shellcheck.sh, to make working around
this easier:
$ SHELLCHECK=/home/smarchi/Downloads/shellcheck-v0.9.0/shellcheck tools/shellcheck.sh
... all fine !
[1] https://github.com/koalaman/shellcheck/releases/tag/v0.9.0
Change-Id: I81f0ea2e40b9dbac75e0b0debcce63338986358c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11755
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
This page took 0.026355 seconds and 4 git commands to generate.