fix: invert comment logic

This commit is contained in:
2025-09-25 22:58:22 +05:30
parent 96bed0abdc
commit 645418fe79

View File

@@ -105,7 +105,7 @@ func ParseEnv(env string) string {
value = matches[4] // unquoted value value = matches[4] // unquoted value
} }
var comment = "" var comment = ""
if enabled { if !enabled {
comment = "# " comment = "# "
} }
envs += fmt.Sprintf("%v%v=%v\n", comment, key, value) envs += fmt.Sprintf("%v%v=%v\n", comment, key, value)