From 6daa99a47f60f19ba523e23a09350d131ca6f121 Mon Sep 17 00:00:00 2001 From: shreddedbacon Date: Mon, 30 Oct 2023 12:24:27 +1100 Subject: [PATCH] fix: if value of variable is empty, show it dont replace it with - --- cmd/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/list.go b/cmd/list.go index efbcbbad..137d7c54 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -286,7 +286,7 @@ var listVariablesCmd = &cobra.Command{ env = append(env, returnNonEmptyString(fmt.Sprintf("%v", envvar.Scope))) env = append(env, returnNonEmptyString(fmt.Sprintf("%v", envvar.Name))) if reveal { - env = append(env, returnNonEmptyString(fmt.Sprintf("%v", envvar.Value))) + env = append(env, fmt.Sprintf("%v", envvar.Value)) } data = append(data, env) }