fix shellcheck

This commit is contained in:
2019-09-16 12:00:11 -04:00
parent f2a4adad79
commit 2e35afc282
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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)
+2
View File
@@ -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)