From a7e876e3571965de64615d2012e63fae9c3ebbf8 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 19 Sep 2013 15:44:43 +0200 Subject: [PATCH] ShellQuoteArguments: Fix quoting This accidentally used two quotes to start/end each quoted string. --- utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index 94aa0dc902..6daac53a03 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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 {