ShellQuoteArguments: Fix quoting

This accidentally used two quotes to start/end each quoted string.
This commit is contained in:
Alexander Larsson
2013-09-26 15:09:33 +00:00
committed by Victor Vieux
parent 009d0f9d81
commit f99f39abaa
+2 -2
View File
@@ -1029,7 +1029,7 @@ func quote(word string, buf *bytes.Buffer) {
return
}
buf.WriteString("''")
buf.WriteString("'")
for i := 0; i < len(word); i++ {
b := word[i]
@@ -1041,7 +1041,7 @@ func quote(word string, buf *bytes.Buffer) {
}
}
buf.WriteString("''")
buf.WriteString("'")
}
func ShellQuoteArguments(args []string) string {