[FIX] tooling: make sure we escape content in release script

This commit is contained in:
Géry Debongnie
2021-07-06 09:58:03 +02:00
parent 88fd1cf483
commit bff539cabf
+2 -1
View File
@@ -79,7 +79,8 @@ async function startRelease() {
// ---------------------------------------------------------------------------
log(`Step 4/${STEPS}: creating git commit...`);
const gitResult = await execCommand(`git commit -am "[REL] v${next}\n\n${content}"`);
const escapedContent = content.replace(/\"/g, '\\\"').replace(/\`/g, '\\\`');
const gitResult = await execCommand(`git commit -am "[REL] v${next}\n\n${escapedContent}"`);
if (gitResult !== 0) {
logError("Git commit failed. Aborting.");
return;