mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ShellQuoteArguments: Fix quoting
This accidentally used two quotes to start/end each quoted string.
This commit is contained in:
parent
ecdbdfdaea
commit
a7e876e357
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue