Skip to content

Commit

Permalink
fix: if value of variable is empty, show it dont replace it with -
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Oct 30, 2023
1 parent 31c24bc commit 6daa99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 6daa99a

Please sign in to comment.