From 5a0bd893e88c9984a40774b329804e9b58e81fd0 Mon Sep 17 00:00:00 2001 From: lovestaco Date: Sun, 13 Aug 2023 20:29:50 +0530 Subject: [PATCH] Adding more condition for empty env suggestion checking --- controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/controller.go b/controller/controller.go index b3f0feca..94813a09 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -89,7 +89,7 @@ func Process(version string) { oldDir, _ := os.Getwd() utils.ChangeWorkingDir(dir) - if (o.Env) == "" { + if (o.Env) == "" && len(o.Output) == 0 { envMap, err := preprocess.GetL2EnvVariables(dir) if err != nil { log.Error().Str("Type", "Preprocess").Msg(err.Error())