Skip to content

Commit 7abe68b

Browse files
committed
fix(run): disable update check on ghost run
closes #356
1 parent 7d53674 commit 7abe68b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/ghost

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
// provide a title to the process
55
process.title = 'ghost';
66

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

1012
const yargs = require('yargs');
1113
const bootstrap = require('../lib/bootstrap');

0 commit comments

Comments
 (0)