Correct escaping of commands in YAML
This commit is contained in:
parent
fec06207dd
commit
e482ef2790
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func toScript(commands []string) string {
|
|||
var buf bytes.Buffer
|
||||
for _, command := range commands {
|
||||
escaped := fmt.Sprintf("%q", command)
|
||||
escaped = strings.Replace(command, "$", `$\`, -1)
|
||||
escaped = strings.Replace(escaped, "$", `\$`, -1)
|
||||
buf.WriteString(fmt.Sprintf(
|
||||
traceScript,
|
||||
escaped,
|
||||
|
|
Loading…
Reference in a new issue