Skip to content

Commit

Permalink
Fix interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-harvey committed Apr 25, 2024
1 parent 0c88550 commit 33a7e74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 33a7e74

Please sign in to comment.