This commit is contained in:
2019-09-21 07:55:01 -04:00
parent 2682400356
commit 6ab0c5ed85
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -551,11 +551,11 @@ class TaskScript(BaseAction):
args = args if args else "\b"
sed_magic = (
"2>&1 | sed >&2 's/^/ | /' && exit \"${PIPESTATUS[0]}\""
if not (interactive or silent)
else "2>&1"
"| sed >&2 's/^/ | /' && exit \"${PIPESTATUS[0]}\""
if not silent
else "| sed >&2 's/^//' && exit \"${PIPESTATUS[0]}\""
)
script = f"t=$(mktemp) && bake --source {self.name} > $t && chmod +x $t && $t {args} {sed_magic}; rm -fr $t"
script = f"t=$(mktemp) && bake --source {self.name} > $t && chmod +x $t && $t {args} 2>&1 {sed_magic}; rm -fr $t"
if debug:
click.echo(f" {click.style('$', fg='green')} {script}", err=True)
-1
View File
@@ -348,7 +348,6 @@ def entrypoint(
sys.exit(0)
if task:
try:
task = bakefile[task]
except KeyError: