mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
fix shellcheck
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ class TaskScript(BaseAction):
|
||||
return c
|
||||
|
||||
def shellcheck(self, *, silent=False, debug=False, **kwargs):
|
||||
tf = self.temp_source()
|
||||
tf = self.prepare_init(sources=[self.source])
|
||||
cmd = f"shellcheck {shlex_quote(tf)} --external-sources --format=json"
|
||||
|
||||
c = delegator.run(cmd)
|
||||
|
||||
@@ -305,6 +305,8 @@ def entrypoint(
|
||||
str(line).zfill(3), bg="black", fg="cyan", bold=True
|
||||
)
|
||||
colored_task = click.style(str(_task), fg="yellow", bold=True)
|
||||
print(locals())
|
||||
print(_task.source)
|
||||
actual_line = _task.source_lines[line - 1]
|
||||
|
||||
click.echo(f"In {colored_task} line {line}:", err=True)
|
||||
|
||||
Reference in New Issue
Block a user