Skip to content

Commit

Permalink
Merge pull request OpenAPITools#7 from romansattler/master
Browse files Browse the repository at this point in the history
Fix "Unable to access jarfile" when path contains spaces
  • Loading branch information
kay-schecker authored Dec 23, 2018
2 parents 2cbd0ad + a0edce9 commit 50b91cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/openapi-generator
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {resolve} = require('path');

const args = process.argv.slice(2);

let command = 'java -jar ' + resolve(__dirname, 'openapi-generator.jar');
let command = 'java -jar "' + resolve(__dirname, 'openapi-generator.jar') + '"';

if (args) {
command += ` ${args.join(' ')}`;
Expand Down

0 comments on commit 50b91cf

Please # to comment.