From 33a7e74b815e05c7403e2738b22b92b714c9c641 Mon Sep 17 00:00:00 2001 From: ben-harvey Date: Thu, 25 Apr 2024 14:49:26 -0400 Subject: [PATCH] Fix interpolation --- build/index.js | 4 +++- src/index.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build/index.js b/build/index.js index c52cdd8..4a40b03 100644 --- a/build/index.js +++ b/build/index.js @@ -32239,7 +32239,9 @@ function main() { process.exit(1); } let returns; - const command = (0, os_1.type)() === windowsType ? `${releaseName} args` : `./${releaseName} args`; + const command = (0, os_1.type)() === windowsType + ? `${releaseName} ${args}` + : `./${releaseName} ${args}`; try { returns = (0, child_process_1.spawnSync)(command, { shell: true }); } diff --git a/src/index.ts b/src/index.ts index 5cf0d5a..df7aa6d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -104,7 +104,9 @@ async function main() { let returns; const command = - type() === windowsType ? `${releaseName} args` : `./${releaseName} args`; + type() === windowsType + ? `${releaseName} ${args}` + : `./${releaseName} ${args}`; try { returns = spawnSync(command, { shell: true }); } catch (error) {