Skip to content

Commit 82cee5e

Browse files
committed
shellcheck_run_steps: Use alternate shellcheck if specified
We were previously ignoring the --shellcheck setting. Signed-off-by: dann frazier <dann.frazier@chainguard.dev>
1 parent 1d2870b commit 82cee5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit_hooks/shellcheck_run_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def do_shellcheck(
5858
shfile.write(step["runs"])
5959
shfile.close()
6060
subprocess.check_call(
61-
["/usr/bin/shellcheck"]
61+
shellcheck
6262
+ shellcheck_args
6363
+ ["--shell=busybox", "--"]
6464
+ [os.path.basename(f.name) for _, f in all_steps],

0 commit comments

Comments
 (0)