From a5dda8aecdb5d5e4e88de1a2aa384265875dc07f Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Mon, 9 Oct 2023 17:07:15 +0300 Subject: [PATCH] Fix bug with reading output for actions with no output data --- cli/cli.go | 2 +- cli/executor/executor.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index a60a72f3..b0bddb6f 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -40,7 +40,7 @@ import ( // Application info const ( APP = "bibop" - VER = "7.4.0" + VER = "7.4.1" DESC = "Utility for testing command-line tools" ) diff --git a/cli/executor/executor.go b/cli/executor/executor.go index 69d341a7..26fb500e 100644 --- a/cli/executor/executor.go +++ b/cli/executor/executor.go @@ -290,7 +290,7 @@ func runCommand(e *Executor, rr render.Renderer, c *recipe.Command) bool { } if err != nil { - if !e.config.Quiet && e.config.Debug && !cmdEnv.output.IsEmpty() { + if !e.config.Quiet && e.config.Debug && cmdEnv.output != nil && !cmdEnv.output.IsEmpty() { fmtc.NewLine() panel.Panel( "☴ OUTPUT", "{y}", "The last 10 lines from command output",