mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(cloudcmd) crash on check for update (#286)
This commit is contained in:
parent
a8bd28318f
commit
545b5a5135
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ const Info = require('../package');
|
|||
const DIR_SERVER = '../server/';
|
||||
|
||||
const {promisify} = require('util');
|
||||
const tryToCatch = require('try-to-catch');
|
||||
|
||||
const exit = require(DIR_SERVER + 'exit');
|
||||
const {
|
||||
|
|
@ -147,7 +148,6 @@ async function main() {
|
|||
if (args.repl)
|
||||
repl();
|
||||
|
||||
checkUpdate();
|
||||
port(args.port);
|
||||
|
||||
config('name', args.name);
|
||||
|
|
@ -216,6 +216,7 @@ async function main() {
|
|||
config.write();
|
||||
|
||||
start(options, config);
|
||||
await tryToCatch(checkUpdate);
|
||||
}
|
||||
|
||||
function validateRoot(root, config) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue