diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-03-02 20:00:11 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-03-02 20:05:43 +0000 |
commit | 66d685830373c716fdf740c3373706056b93ad65 (patch) | |
tree | 159ea158fd641aeb19d97f1010d2af4278ba34c0 /client/go/internal/curl/curl.go | |
parent | e8843502782cf63a490fe9cd45c43329d509b0f5 (diff) |
use common shell quoting utilityarnej/use-our-shell-quote
* only suited for printable ascii
* always single-quotes if quoting needed
* may quote more than strictly necessary
Diffstat (limited to 'client/go/internal/curl/curl.go')
-rw-r--r-- | client/go/internal/curl/curl.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/go/internal/curl/curl.go b/client/go/internal/curl/curl.go index b70e0f824a3..0ee21a7f4e1 100644 --- a/client/go/internal/curl/curl.go +++ b/client/go/internal/curl/curl.go @@ -7,7 +7,6 @@ import ( "os/exec" "runtime" - "github.com/kballard/go-shellquote" "github.com/vespa-engine/vespa/client/go/internal/util" ) @@ -77,7 +76,7 @@ func (c *Command) Args() []string { func (c *Command) String() string { args := []string{c.Path} args = append(args, c.Args()...) - return shellquote.Join(args...) + return util.ShellQuoteArgs(args...) } func (c *Command) Header(key, value string) { |