diff --git a/command/credentials.go b/command/credentials.go index cbed8ac3..300dae39 100644 --- a/command/credentials.go +++ b/command/credentials.go @@ -84,13 +84,13 @@ func (bashWriter) ExportEnvironmentVariable(w io.Writer, key, value string) (int type powershellWriter struct{} func (powershellWriter) ExportEnvironmentVariable(w io.Writer, key, value string) (int, error) { - return fmt.Fprintf(w, "$Env:%s = %q\n", key, value) + return fmt.Fprintf(w, "$Env:%s = %q\r\n", key, value) } type basicWriter struct{} func (basicWriter) ExportEnvironmentVariable(w io.Writer, key, value string) (int, error) { - return fmt.Fprintf(w, "SET %s=%q\n", key, value) + return fmt.Fprintf(w, "SET %s=%s\r\n", key, value) } type environmentVariableWriter interface {