From c1b61a348f487c23a81da19cecb9911602337f1b Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Mon, 23 Dec 2024 13:58:44 +0100 Subject: [PATCH] Update index.js --- src/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 7ec4ee2..8636d29 100644 --- a/src/index.js +++ b/src/index.js @@ -25,18 +25,14 @@ async function run() { if (workspaceExists && workspaceNotEmpty) { // Escaping quotes in the options array const escapedOptions = options.map((str) => - str.replace(/(["'])/g, "\\$1"), + str.replace(/(["'])/g, '$1')); ); - // Debugging output to check the escaped options - console.log("Escaped Options:", escapedOptions); - execFile( `${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`, [...escapedOptions, `${workspacePath}\\${path}`], (execError, stdout, stderr) => { - console.log("stdout:", stdout); - console.log("stderr:", stderr); + console.log(stdout, stderr); if (execError) { core.setFailed(`Execution failed with error: ${stderr}`); process.exit(execError.code || 1);