Skip to content

Commit

Permalink
fix(run): disable update check on ghost run
Browse files Browse the repository at this point in the history
closes #356
  • Loading branch information
acburdine committed Jul 29, 2017
1 parent 7d53674 commit 7abe68b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/ghost
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
// provide a title to the process
process.title = 'ghost';

// Check for CLI updates
require('../lib/utils/update-notifier');
// Check for CLI updates if not running `ghost run`
if (process.argv.length > 2 && process.argv[2] !== 'run') {
require('../lib/utils/update-notifier');
}

const yargs = require('yargs');
const bootstrap = require('../lib/bootstrap');
Expand Down

0 comments on commit 7abe68b

Please sign in to comment.