Skip to content

Commit de7bd9d

Browse files
committed
Place powershell values in quotes
1 parent 3732b10 commit de7bd9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command/credentials.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (bashWriter) ExportEnvironmentVariable(w io.Writer, key, value string) (int
8484
type powershellWriter struct{}
8585

8686
func (powershellWriter) ExportEnvironmentVariable(w io.Writer, key, value string) (int, error) {
87-
return fmt.Fprintf(w, "$Env:%s = %s\n", key, value)
87+
return fmt.Fprintf(w, "$Env:%s = %q\n", key, value)
8888
}
8989

9090
type basicWriter struct{}

0 commit comments

Comments
 (0)