Skip to content

Commit

Permalink
Merge pull request #19 from jeffwilde/bug/exec-path-cleanup
Browse files Browse the repository at this point in the history
Execution control clean-up
  • Loading branch information
dabit3 authored Aug 3, 2017
2 parents 30edeea + eec4c6d commit 62f1a03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ const build = (appName) => {
font: 'Graffiti'
}, function(err, data) {
if (err) {
return;
console.log(chalk.white.bold('React XP'));
} else {
console.log(data);
}
console.log(data);
console.log('----------------------------------------------------------');
console.log(chalk.green.bold('Welcome to ReactXP'));
console.log('----------------------------------------------------------');
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ program
.parse(process.argv);

if (program.args.length > 0) {
spawn(build(program.args[0]), { shell: true, stdio: 'inherit' });
build(program.args[0]);
} else if (program.args.length < 1) {
console.log(chalk.red('Please supply a name for your new React XP app.'));
}

0 comments on commit 62f1a03

Please sign in to comment.