Fixed bug escaping quotes
This commit is contained in:
parent
954919c393
commit
e23382f729
@ -77,7 +77,8 @@ export class TemplateEngine {
|
|||||||
|
|
||||||
const formatString = isLastLine ? '%s' : '%s\\n';
|
const formatString = isLastLine ? '%s' : '%s\\n';
|
||||||
|
|
||||||
buffer += `printf '${formatString}' '${line.replace("'", "'\\''")}';\n`;
|
buffer +=
|
||||||
|
`printf '${formatString}' '${line.replaceAll("'", "'\\''")}';\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return buffer;
|
return buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user