Skip to content

Commit

Permalink
Force exit after command executes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed May 4, 2018
1 parent 77a7293 commit 850b955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/truffle-core/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ command.run(process.argv.slice(2), options, function(err) {
}
process.exit(1);
}
console.log('Forcing exit...')
process.exit(0);

// Don't exit if no error; if something is keeping the process open,
// like `truffle console`, then let it.
Expand Down
2 changes: 0 additions & 2 deletions packages/truffle-core/lib/commands/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ var command = {

if (needsMigrating) {
Migrate.run(config, done);
console.log('Forcing exit after `migrate.run`');
process.exit(0);
} else {
config.logger.log("Network up to date.")
callback();
Expand Down

0 comments on commit 850b955

Please sign in to comment.