Skip to content

Commit

Permalink
enclose env value with quote
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin committed Aug 20, 2021
1 parent 8b026bf commit 2b2659b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified gitlabvar
Binary file not shown.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func getDotEnv() error {
var buf string
for _, e := range *varlist {
if (e.EnvironmentScope == envScope || e.EnvironmentScope == "*") && e.VariableType == "env_var" {
buf += strings.Replace(e.Key, "K8S_SECRET_", "", 1) + "=" + e.Value + "\n"
buf += strings.Replace(e.Key, "K8S_SECRET_", "", 1) + "=\"" + e.Value + "\"\n"
}
}
err = ioutil.WriteFile(".env", []byte(buf), 0644)
Expand Down

0 comments on commit 2b2659b

Please sign in to comment.