From 02233507cb1675c690a6b0fefa1dffefb72b6e5a Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Mon, 23 Dec 2024 13:39:01 +0100 Subject: [PATCH] Update index.js (for debugging purposes) --- src/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 42bdd72..3703261 100644 --- a/src/index.js +++ b/src/index.js @@ -23,15 +23,18 @@ async function run() { const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0; if (workspaceExists && workspaceNotEmpty) { - const escapedOptions = options.map((str) => - str.replace(/(["'])/g, "\\$1"), - ); + // Escaping quotes in the options array + const escapedOptions = options.map(str => 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); + console.log('stdout:', stdout); + console.log('stderr:', stderr); if (execError) { core.setFailed(`Execution failed with error: ${stderr}`); process.exit(execError.code || 1);