allure-npm icon indicating copy to clipboard operation
allure-npm copied to clipboard

Command does not work with path containing white-space

Open szikszail opened this issue 5 years ago • 0 comments

In case, the CWD contains white-space, the command does not work. Same issue as https://github.com/nodejs/node/issues/7367

This can be fixed here as well (in index.js):

return require('child_process').spawn('"' + path.join(__dirname, 'dist/bin', allureCommand) + '"', args, { // adding quotes
   env: process.env,
   stdio: 'inherit',
   shell: true, // enabling shell, to support quotes :)
});

szikszail avatar Jul 29 '20 11:07 szikszail