diff --git a/src/cli/print.go b/src/cli/print.go index 7725e706..f7d68c6d 100644 --- a/src/cli/print.go +++ b/src/cli/print.go @@ -59,6 +59,7 @@ var printCmd = &cobra.Command{ } eng := engine.New(flags) + defer eng.Env.Close() switch args[0] { case "debug": diff --git a/src/engine/new.go b/src/engine/new.go index a3ecf28d..7fec16f1 100644 --- a/src/engine/new.go +++ b/src/engine/new.go @@ -16,7 +16,6 @@ func New(flags *platform.Flags) *Engine { } env.Init() - defer env.Close() cfg := LoadConfig(env) ansi := &color.Ansi{} ansi.Init(env.Shell())