diff --git a/dist/index.js b/dist/index.js index 4f8d4ba..320ecb6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27331,15 +27331,20 @@ async function run() { const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0; if (workspaceExists && workspaceNotEmpty) { + // 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); diff --git a/src/index.js b/src/index.js index 3703261..7ec4ee2 100644 --- a/src/index.js +++ b/src/index.js @@ -24,17 +24,19 @@ async function run() { if (workspaceExists && workspaceNotEmpty) { // Escaping quotes in the options array - const escapedOptions = options.map(str => str.replace(/(["'])/g, '\\$1')); + const escapedOptions = options.map((str) => + str.replace(/(["'])/g, "\\$1"), + ); // Debugging output to check the escaped options - console.log('Escaped Options:', escapedOptions); + 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:", stdout); + console.log("stderr:", stderr); if (execError) { core.setFailed(`Execution failed with error: ${stderr}`); process.exit(execError.code || 1);