Skip to content

Commit

Permalink
wrap path to allure bin file to fix problem with whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
epszaw committed Feb 1, 2024
1 parent 64be658 commit cce7873
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ var isWindows = path.sep === '\\';
var allureCommand = 'allure' + (isWindows ? '.bat' : '');

module.exports = function(args) {
return require('child_process').spawn(path.join(__dirname, 'dist/bin', allureCommand), args, {
const binPath = path.join(__dirname, 'dist/bin', allureCommand);

return require('child_process').spawn(`"${binPath}"`, args, {
env: process.env,
stdio: 'inherit'
});
Expand Down
16 changes: 14 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@
"test": "./bin/allure --version"
},
"repository": "https://github.com/allure-framework/allure-npm.git",
"license": "Apache-2.0",
"devDependencies": {}
"license": "Apache-2.0"
}

0 comments on commit cce7873

Please sign in to comment.