diff --git a/internal/cmd/deploy/build_escape.go b/internal/cmd/deploy/build_escape.go index 39aee32cd..3d2a9bca0 100644 --- a/internal/cmd/deploy/build_escape.go +++ b/internal/cmd/deploy/build_escape.go @@ -31,8 +31,8 @@ func escapeFlags(ldFlags []string, ldFlagsCustom string) string { ldFlags = append(ldFlags, strings.Split(ldFlagsCustom, " ")...) } - if out := strings.Replace(strings.Join(ldFlags, "\" \""), "_DONT_ESCAPE_", " ", -1); len(out) > 0 { - return fmt.Sprintf("\"%v\"", out) + if out := strings.Replace(strings.Join(ldFlags, " "), "_DONT_ESCAPE_", " ", -1); len(out) > 0 { + return fmt.Sprintf("%q", out) } return "" }