From 2e35afc282c5e07172fdeb3c5d8205302c113a06 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 16 Sep 2019 12:00:11 -0400 Subject: [PATCH] fix shellcheck --- bake/bakefile.py | 2 +- bake/cli.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bake/bakefile.py b/bake/bakefile.py index 3d4a2ce..cc1c205 100644 --- a/bake/bakefile.py +++ b/bake/bakefile.py @@ -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) diff --git a/bake/cli.py b/bake/cli.py index 5214507..0350818 100644 --- a/bake/cli.py +++ b/bake/cli.py @@ -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)