Skip to content

Commit

Permalink
env: quote values
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Apr 7, 2022
1 parent 9b1bcdb commit 450a4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (c *envCodec) marshal(v interface{}) ([]byte, error) {
)

for _, k := range keys {
fmt.Fprintf(&buf, "%s%s=%v\n", p, strings.ToUpper(k), envs[k])
fmt.Fprintf(&buf, "%s%s=%q\n", p, strings.ToUpper(k), envs[k])
}

return buf.Bytes(), nil
Expand Down

0 comments on commit 450a4f4

Please sign in to comment.