|
|
@ -117,7 +117,11 @@ func (m *Env) writeEnvVar(w io.Writer, value string, name string, args ...any) { |
|
|
|
if name != "" { |
|
|
|
if name != "" { |
|
|
|
value = strings.TrimSpace(value) |
|
|
|
value = strings.TrimSpace(value) |
|
|
|
|
|
|
|
|
|
|
|
_, _ = fmt.Fprintf(w, "%s%s=%q\n", prefix, name, value) |
|
|
|
if value == "" { |
|
|
|
|
|
|
|
_, _ = fmt.Fprintf(w, "%s%s=\n", prefix, name) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
_, _ = fmt.Fprintf(w, "%s%s=%q\n", prefix, name, value) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|