Skip to content

Commit

Permalink
fix(project): allow nameless tasks to be run
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Oct 12, 2017
1 parent 65294ca commit d77d096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const {Runner} = require('./lib/Runner');
const config = require(process.cwd() + '/boards.js');
const task = process.argv[2];
const name = process.argv[3];
const pascalCased = name[0].toUpperCase() + name.substr(1);
const upperCased = name.replace(/([A-Z])/g, c => `_${c}`).toUpperCase();
const pascalCased = name && name[0].toUpperCase() + name.substr(1);
const upperCased = name && name.replace(/([A-Z])/g, c => `_${c}`).toUpperCase();

let runner = new Runner(config);

Expand Down

0 comments on commit d77d096

Please sign in to comment.