Browse Source

fix: Fix issue where commands could not be executed correctly when they contained spaces

pull/7682/head
NoahLan 1 week ago
parent
commit
883cd7da95
  1. 6
      internal/node-utils/scripts/build.mjs

6
internal/node-utils/scripts/build.mjs

@ -22,7 +22,11 @@ const steps = [
for (const args of steps) {
const [command, ...commandArgs] = pnpmCommand;
const result = spawnSync(command, [...commandArgs, ...args], {
let cmd = command
if(cmd.includes(" ")) {
cmd = `"${command}"`
}
const result = spawnSync(cmd, [...commandArgs, ...args], {
shell: true,
stdio: 'inherit',
});

Loading…
Cancel
Save